Repository navigation
fix: close payout double-pay gaps in Ergo, Alephium, Beam, Warthog, Xelis - #13
Merged
colneech-dev merged 1 commit intoNov 24, 2026
Merged
Conversation
…elis Completes the payout idempotency pass (see fix/payout-batch-idempotency-5-chains): these 5 remaining handlers sent funds and persisted payments with no durable record in between, so a crash or timeout between broadcast and persistence could pay the same balance again on the next run. Ergo: begins a batch before WalletPaymentTransactionGenerateAndSendAsync; a PaymentException (explicit API rejection) marks it failed, any other exception (transport failure) leaves it pending for an operator to resolve. Alephium: the build/sign steps don't move funds, only PostTransactionsSubmitAsync does, so the batch is begun right before that call per address-group. Beam: same per-balance shape as Ethereum/Kaspa - begins/completes a batch around SendTransaction. Warthog: the batch is begun per-transfer right before the SendTransaction REST POST (the only step that moves funds); build/sign of the transaction happens earlier and is unaffected. Removed the now-redundant PersistPaymentsAsync(successBalances) since persistence already happened per-transfer. Xelis: BuildTransaction signs and broadcasts in one call, so the batch is begun right before it, per destination-page. Build-verified: dotnet build (Release, SkipNativeLibBuild=true), 0 errors. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
colneech-dev
deleted the
fix/payout-batch-idempotency-remaining-5-chains
branch
November 24, 2026 20:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Completes the payout idempotency pass started in #11: these 5 remaining handlers sent funds and persisted payments with no durable record in between, so a crash or RPC timeout between broadcast and persistence could pay the same balance again on the next run.
WalletPaymentTransactionGenerateAndSendAsync; an explicit API rejection marks it failed, any other exception leaves it pending for an operator to resolve.PostTransactionsSubmitAsyncdoes, so the batch begins right before that call per address-group.SendTransaction.SendTransactionREST POST; removed the now-redundant bulkPersistPaymentsAsynccall since persistence already happens per-transfer.BuildTransactionsigns and broadcasts in one call, so the batch is begun right before it, per destination-page.Test plan
dotnet build(Release, SkipNativeLibBuild=true) — 0 errors, only pre-existing warnings🤖 Generated with Claude Code