Fail UTXO lookups if the block doesn't have five confirmations 2023-04-gossip-check
authorMatt Corallo <git@bluematt.me>
Mon, 5 Jun 2023 17:22:36 +0000 (17:22 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 23 Aug 2023 21:48:03 +0000 (21:48 +0000)
commit189c1fbe2c85cad9ae391b2ffe921e30f7d77dbc
treef55b111547e02d27baf909aa32878e0fa3f5475d
parent3482fceeab251b2534bf0b7d0ff882db37409d40
Fail UTXO lookups if the block doesn't have five confirmations

The BOLT spec mandates that channels not be announced until they
have at least six confirmations. This is important to enforce not
because we particularly care about any specific DoS concerns, but
because if we do not we may have to handle reorgs of channel
funding transactions which change their SCID or have conflicting
SCIDs.
lightning-block-sync/src/gossip.rs