Implement bumping engine in ChannelMonitor::block_connected
authorAntoine Riard <ariard@student.42.fr>
Tue, 2 Jul 2019 19:52:58 +0000 (15:52 -0400)
committerMatt Corallo <git@bluematt.me>
Tue, 10 Dec 2019 03:22:54 +0000 (22:22 -0500)
commit116b1eb028e02f32718ddd688348f64b719de31e
tree52fea58deb1d6def03b3e6f3b6ee9e6935c45290
parent6a7c471369ea3bde4625da9601873d4f1dca9bd3
Implement bumping engine in ChannelMonitor::block_connected

Add RBF-bumping of justice txn, given they are only signed by us we
can RBF at wish.

Aggregation of bump-candidates and more aggresive bumping heuristics
are left open

Fix tests broken by introduction of more txn broadcast.
Some tests may have a relaxed check (claim_htlc_ouputs_single_tx)
as broadcast bumped txn are now interwining in previous broadcast ones
and breaking simple expectations

Use bumping engine to rebuild claiming transaction in case of partial-
claim of its outpoints set.
fuzz/fuzz_targets/full_stack_target.rs
lightning/src/ln/channelmonitor.rs
lightning/src/ln/functional_tests.rs