Skip to content

df: check mempool/block for funding output on broadcast fail #5367

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

Closed
wants to merge 1 commit into from

Conversation

niftynei
Copy link
Contributor

@niftynei niftynei commented Jul 1, 2022

If we can't broadcast the tx, confirm that it didn't end up in the
mempool or the utxo set before throwing an error.

Note that this doesn't protect us in the case where the funding
output has already been spent... but that's extremely rare, right?

Fixes #5296

Reported-By: @rustyrussell
Collab-With: @vincenzopalazzo

If we can't broadcast the tx, confirm that it didn't end up in the
mempool or the utxo set before throwing an error.

Note that this doesn't protect us in the case where the funding
output has already been *spent*... but that's extremely rare, right?

Fixes ElementsProject#5296

Reported-By: @rustyrussell
Collab-With: @vincenzopalazzo
Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ack

This PR solves the lnprototest issue rustyrussell/lnprototest#31 before ack it we need to rebase on master and make sure that also the CI is happy with that! :)

@niftynei
Copy link
Contributor Author

niftynei commented Jul 8, 2022

superceded by #5372

@niftynei niftynei closed this Jul 8, 2022
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.

Dual funding gets upset if peer has funding tx mined before we sendrawtransaction
2 participants