]> git.bitcoin.ninja Git - rust-lightning/commit
Track HTLC-failure trigger tx until anti-reorg delay reached
authorAntoine Riard <ariard@student.42.fr>
Fri, 31 May 2019 00:54:02 +0000 (20:54 -0400)
committerAntoine Riard <ariard@student.42.fr>
Wed, 17 Jul 2019 19:26:33 +0000 (15:26 -0400)
commit72c5423fd5eca2221641687df57ddf7fe505f756
tree86e5a4cf0facaaa23142e312d5e4613a21893f00
parent4b3afdd8d295330003250199bdf673b8a39acd3a
Track HTLC-failure trigger tx until anti-reorg delay reached

Broadcasting a commitment tx means that we have to fail
inbound HTLC in backward channel. Doing it prematurely would
put us at risk in case of reorg. So we delay passing failure
update upstream until solving tx mature to HTLC_FAIL_ANTI_
REORG_DELAY.
Requirements differ if HTLC is a revoked/non-revoked dust/
non-revoked non-dust one.

Add connect_blocks in test_utils to fix broken tests due to
anti-reorg delay enforcement

Remove anti-duplicate htlc update stuff in ManySimpleChannelMonitor
src/ln/channelmonitor.rs
src/ln/functional_test_utils.rs
src/ln/functional_tests.rs