Skip to content
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

Clean up bid replacements and output selection #34

Merged
merged 3 commits into from
Nov 18, 2024

Conversation

buffrr
Copy link
Member

@buffrr buffrr commented Nov 18, 2024

This PR makes bid replacements more robust: Generally, If tx1 spends bidout1 then later tx2 replaces tx1 by also spending bidout1 then bdk may use outputs from tx1 to fund tx2, even though tx2 is technically replacing tx1 resulting in bad-txns-spends-conflicting-tx

We should avoid selecting unconfirmed outputs when doing tx replacements anyways as that could result in replacement-adds-unconfirmed from Bitcoin Core. BDK avoids this here during fee bumping.

This PR also adds an additional safety check during bidout selection to avoid selecting any spaces that look like bidouts.

@buffrr buffrr merged commit f664298 into spacesprotocol:main Nov 18, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant