]> git.bitcoin.ninja Git - rust-lightning/commit
Fix duplicata of adjusted justice tx generation in OnchainTxHandler
authorAntoine Riard <ariard@student.42.fr>
Wed, 11 Mar 2020 19:10:29 +0000 (15:10 -0400)
committerMatt Corallo <git@bluematt.me>
Tue, 17 Mar 2020 18:09:21 +0000 (14:09 -0400)
commit0d45ddc9e235eaf756d8e09118daa2e9ee88e639
tree7a6e8d9ffcb03850d6c37b6a6f4a434ca2a9aa51
parentc8236b281164af1ac1c4b2258c5e6ac3490aecee
Fix duplicata of adjusted justice tx generation in OnchainTxHandler

Adjusted tx occurs when a previous aggregated claim tx has
seen one of its outpoint being partially claimed by a remote tx.
To pursue claiming of the remaining outpoint a adjusted claim tx
is generated  with leftover of claimable outpoints.

Previously, in case of block-rescan where a partial claim occurs,
we would generate duplicated adjusted tx, wrongly inflating feerate
for next bumps. At rescan, if input has already been dropped from
outpoints map from a claiming request, don't regenerate again
a adjuste tx.
lightning/src/ln/functional_tests.rs
lightning/src/ln/onchaintx.rs