-
Notifications
You must be signed in to change notification settings - Fork 906
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
onchaind
now scorches the earth when penalizing a revoked transaction
#3870
Conversation
This looks great, can't wait to dive in and review it, once the release is out the door 🙂 |
52e6497
to
17bed2d
Compare
Rebased, also increased test coverage a little by also checking that an RBFed transaction is considered resolved by the |
An issue is that this changes the interface of |
Did what I suggested, which is, if |
Rebased. Also, changed the Changelog regarding two-argument |
800ab96
to
3f6d7d6
Compare
Rebased, especially with #3889 merged in. |
bump |
3f6d7d6
to
645bdad
Compare
Rebased on master. Also, bump. |
b417f27
to
ee9d85e
Compare
Rebased. Also, fixed the capstone --- if we make a penalty transaction that donates the money to miners (because the locktime has been reached) then it previously would make a transaction smaller than the 82-byte limit. We now use a padded |
Assigning @rustyrussell since |
I am going to apply this, though the "real answer" is to have a general engine which makes these kind of "deadline" decisions. That will require careful design, and meanwhile this fixes a real issue. |
Ack ee9d85e |
(If @ZmnSCPxj doesn't get to it first, I'll rebase and apply...) |
ee9d85e
to
b1d69ad
Compare
Fairly trivial rebase. |
…or RBF txes created by onchaind.
…transactions. It is a getter, so, does not change the transaction, so should accept `const`.
…s` argument. Changelog-Deprecated: plugin: `bcli` replacements should note that `sendrawtransaction` now has a second required Boolean argument, `allowhighfees`, which if `true`, means ignore any fee limits and just broadcast the transaction. Use `--deprecated-apis` to use older `bcli` replacement plugins that only support a single argument.
…OP_RETURN with a pointless random 20-byte padding. In the case of `donateutxo`, this is needed since a simple spend of a P2WPKH to an `OP_RETURN` would be below the minimum transaction size. Sizes below 20 are not plausible as commitments.
Fixes: ElementsProject#3832 Changelog-Changed: onchaind: We now scorch the earth on theft attempts, RBFing up our penalty transaction as blocks arrive without a penalty transaction getting confirmed.
b1d69ad
to
8d6442a
Compare
... another trivial rebase. |
Ack 8d6442a |
Fixes: #3832