]> git.bitcoin.ninja Git - rust-lightning/commit
Handle new event processing logic when enqueuing forward event
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Wed, 5 Jul 2023 20:29:12 +0000 (13:29 -0700)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Mon, 10 Jul 2023 16:49:31 +0000 (09:49 -0700)
commit81722ca8338e200551750c3b22df8312105a9f7b
tree670d434da9e4f05680fd6b56fd7c6c968715ffeb
parent86fd9e7fbc549f1e556063301a22a5bb3bc1f333
Handle new event processing logic when enqueuing forward event

This was a regression resulting from f2453b7 since we now process events
in a loop until there aren't any left. Processing events is done in
batches and they are not removed until we're done processing each batch.
Since handling a `PendingHTLCsForwardable` event will call back into the
`ChannelManager`, we'll still see the original forwarding event not
removed. Phantom payments will need an additional forwarding event
before being claimed to make them look real by taking more time.
lightning-invoice/src/utils.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs