Move our_claim_txn_waiting_first_conf to pending_claim_requests
authorAntoine Riard <ariard@student.42.fr>
Tue, 10 Dec 2019 03:18:20 +0000 (22:18 -0500)
committerMatt Corallo <git@bluematt.me>
Tue, 10 Dec 2019 03:22:35 +0000 (22:22 -0500)
commit0011713d2cee8060883fb2039ff5cbd32b5c9677
tree016be30e543806d20ce6e4a1080f06d9d6cdd2f6
parent09ca1e93a4b412ee07f328a5c076fb3b4847f557
Move our_claim_txn_waiting_first_conf to pending_claim_requests

Add claimable_outpoints maps.

Both structures are tied and should ensure their mutual consistency.

Pending_claim_requests is cached by original claim txid. Medatada
and per input material should be constant between bumped transactions,
only change should be partial-claiming of outpoints set and block
reorgs.

Due to RBF rules, if an input has been part of an aggregate tx
at first claim try, if we want the bumped tx to land nicely
in the mempool, inputs should be distributed in multiple
bumped tx but still be aggregate in a new bumped tx.
lightning/src/ln/channelmonitor.rs