You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e5eabfe
Browse filesBrowse the repository at this point in the historyBrowse files
fix(coinjoin): only report a promotion when its inputs can be selected
GetDenominationCounts() counted every fully-mixed coin, but
SelectFullyMixedForPromotion() takes at most one coin per parent
transaction. Standard mixing clusters up to 9 of a wallet's coins in each
mixing transaction, so wallets routinely held PROMOTION_RATIO fully-mixed
coins spread over fewer than PROMOTION_RATIO transactions. Such a wallet
reported a promotion opportunity on every attempt, failed selection every
time, never promoted, and skipped the "nothing to do" exits it would
otherwise take.
Count fully-mixed coins at most once per parent transaction, which is what
selection can return. ShouldDemote() only needs one such coin and is
unaffected.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments