Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require to claim revoked local output in its own penalty tx post-anchor
If `option_anchor_outputs` applies, the cheating node can pin spends of its HTLC-timeout/HTLC-success outputs thanks to SIGHASH_SINGLE malleability. Using a single penalty transaction for all revoked outputs is thus unsafe as it could be blocked to propagate long enough for the `_local node's main output_ 's relative timelock to expire and the cheating party escaping the penalty on this output.
- Loading branch information