Skip to content

perf(cketh): stop making a detected deposit wait to be swept - #11260

Draft
gregorydemay wants to merge 1 commit into
greg/DEFI-2926-anvil-sweep-harnessfrom
greg/DEFI-2926-sweep-without-waiting
Draft

perf(cketh): stop making a detected deposit wait to be swept#11260
gregorydemay wants to merge 1 commit into
greg/DEFI-2926-anvil-sweep-harnessfrom
greg/DEFI-2926-sweep-without-waiting

Conversation

@gregorydemay

@gregorydemay gregorydemay commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Why

  • A detected deposit waited for the withdrawal task's interval before being enqueued, then for the next sending round before being sent.
  • Neither wait buys anything: the sweep is ready as soon as the balance scan sees the funds.

What

  • Enqueuing gets its own interval instead of borrowing the withdrawal one.
  • A sweep that has just been enqueued kicks the sending task immediately rather than waiting for its next tick.

@github-actions github-actions Bot added the perf label Aug 21, 2026
@gregorydemay
gregorydemay force-pushed the greg/DEFI-2926-sweep-without-waiting branch from aaa2e91 to 2f95092 Compare August 21, 2026 14:46
@gregorydemay
gregorydemay force-pushed the greg/DEFI-2926-sweep-without-waiting branch from 2f95092 to 5f0941a Compare August 25, 2026 07:16
@gregorydemay
gregorydemay force-pushed the greg/DEFI-2926-sweep-without-waiting branch from 5f0941a to 83a984a Compare August 25, 2026 10:05
@gregorydemay
gregorydemay force-pushed the greg/DEFI-2926-sweep-without-waiting branch from 83a984a to f5efe4d Compare August 25, 2026 11:21
@gregorydemay
gregorydemay force-pushed the greg/DEFI-2926-sweep-without-waiting branch from f5efe4d to 4756f7b Compare August 25, 2026 12:55
@gregorydemay
gregorydemay force-pushed the greg/DEFI-2926-sweep-without-waiting branch from 4756f7b to b492cc9 Compare August 25, 2026 13:05
@gregorydemay
gregorydemay force-pushed the greg/DEFI-2926-sweep-without-waiting branch from b492cc9 to f501df0 Compare August 25, 2026 13:17
@gregorydemay
gregorydemay force-pushed the greg/DEFI-2926-sweep-without-waiting branch 2 times, most recently from 2acbeef to ed49cc6 Compare August 25, 2026 14:32
@gregorydemay
gregorydemay force-pushed the greg/DEFI-2926-sweep-without-waiting branch from ed49cc6 to b60e904 Compare August 25, 2026 15:45
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@gregorydemay
gregorydemay force-pushed the greg/DEFI-2926-sweep-without-waiting branch from b60e904 to a5631ab Compare August 25, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant