-
Notifications
You must be signed in to change notification settings - Fork 902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Periodically rebroadcast transactions that aren't confirmed #3667
Comments
A better idea might be to have the plugin #3870 changes the |
Okay, here is the So I think we can define |
We currently have a bit of a fire-and-forget attitude to publishing
transactions, which results in us trusting our bitcoin backend (local
bitcoind
instance to attempt a rebroadcast if possible). This can lead tosome strange situations like orphaned transactions (#2171) and or transactions
being crowded out of the mempool due to fee pressure (#3590). Since we already
store all sent transactions, with annotations, in the
transactions
table,along with the
blockheight
, we can easily identify unconfirmed transactions(those with
blockheight=0
) and could reattempt a broadcast every once in awhile.
The rebroadcast could be triggered whenever a block is found. As an extra
precaution against forever broadcasting the same transactions over and over
without a chance of them getting confirmed (double spends), we can use the
utxoset
table to filter out transactions whose input UTXOs aren't available,though this can be added in a second step.
Fixes #3590
Fixes #2171
The text was updated successfully, but these errors were encountered: