Repository navigation
Conversation
Core support for scheduled private broadcast: - Add an optional release height to submitted transactions; `release_height` field added to `TxBroadcastInfo` and `TxSendStatus` - Add ReleaseDue() to release the scheduled transactions whose release height has been reached by the given block height - Adapt logic to handle scheduled submission (Add, Remove, etc.): a transaction is not sent before it is released, has no planned sends to cancel on Remove(), and is forgotten by MarkResolved() - Measure staleness from the time of release
Only send scheduled transactions after the active chain reaches their release height. A periodic task, similar to ReattemptPrivateBroadcast(), releases the transactions that became due, re-validates them, and requests connections for the ones that are still valid.
If set, and private broadcast is enabled (prerequisite), the broadcast of the submitted transaction is scheduled for the block height nLockTime + delay_after_lock_time. Only height-based lock times are supported. If the release height has already been reached, the transaction is broadcast immediately. A scheduled transaction is validated at submission. If it is rejected only as TX_PREMATURE_SPEND (e.g. its nLockTime is in the future), it is still accepted, as it may become valid by its release height; the checks that ATMP did not get to are then only done at release, when the transaction is fully validated again. getprivatebroadcastinfo shows the release height of scheduled transactions.
optout21
force-pushed
the
2611-scheduled-broadcast2
branch
from
November 3, 2026 07:52
de13a4c to
acd697c
Compare
Owner
Author
|
--> bitcoin#36429 |
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.
TODO
reworked to locktime based