]> git.bitcoin.ninja Git - rust-lightning/commit
Set transaction locktime on malleable packages to discourage fee sniping
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Tue, 28 Mar 2023 19:09:13 +0000 (12:09 -0700)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Tue, 28 Mar 2023 19:42:23 +0000 (12:42 -0700)
commit68122bd09de5feca5538247f2533ec3b89ccf242
tree23fa0d4a5b4573bed8a1725d3994e12769926450
parent2ac09711d3e2c329d96e0bd60938ba83ff382b37
Set transaction locktime on malleable packages to discourage fee sniping

This only applies to all malleable packages on channels pre-dating
anchors and malleables packages for counterparty commitments
post-anchors. Malleables packages for holder commitments post-anchors
should have their transaction locktime applied manually by the consumer
of `BumpTransactionEvent::HTLCResolution` events.
lightning/src/chain/onchaintx.rs
lightning/src/chain/package.rs
lightning/src/ln/functional_tests.rs