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

Simplify replaceable tx funding #2745

Merged
merged 2 commits into from
Sep 20, 2023

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Sep 19, 2023

We were previously signing twice (with makes a call to bitcoind), just to get the final weights and adjust the change outputs. This was unnecessary, as we can adjust the weights before adding inputs.

We were also duplicating the checks where we verify that bitcoind is malicious. We only need to check that once, during the final signing step.

This PR targets #2613, but we can also integrate it after #2613 if you prefer.

We only need the weight of the signed commit tx, it was error-prone to
provide what looks like a signed commit tx.
We were previously signing twice (with makes a call to `bitcoind`),
just to get the final weights and adjust the change outputs. This was
unnecessary, as we can adjust the weights before adding inputs.

We were also duplicating the checks where we verify that `bitcoind` is
malicious. We only need to check that once, during the final signing step.
@t-bast t-bast requested a review from sstone September 19, 2023 14:12
@t-bast t-bast merged commit 7cd8b14 into implement-external-signer Sep 20, 2023
@t-bast t-bast deleted the improve-replaceable-tx-funder branch September 20, 2023 15:04
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.

2 participants