]> git.bitcoin.ninja Git - rust-lightning/commit
Process `channel_update`/`node_announcement` async if needed
authorMatt Corallo <git@bluematt.me>
Tue, 7 Feb 2023 20:38:20 +0000 (20:38 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 8 Feb 2023 23:54:30 +0000 (23:54 +0000)
commit67c9c7f2ae150a287370d56373f673e116172690
tree15d34082bfbbc2957b451858ac959bed6303e35f
parent7388b6c1d795a5cbbf2c6c109bacd26e15c81500
Process `channel_update`/`node_announcement` async if needed

If we have a `channel_announcement` which is waiting on a UTXO
lookup before we can process it, and we receive a `channel_update`
or `node_announcement` for the same channel or a node which is a
part of the channel, we have to wait until the lookup completes
until we can decide if we want to accept the new message.

Here, we store the new message in the pending lookup state and
process it asynchronously like the original `channel_announcement`.
lightning/src/routing/gossip.rs
lightning/src/routing/utxo.rs