]> git.bitcoin.ninja Git - rust-lightning/commit
Add genesis block hash to NetworkGraph
authorbmancini55 <bmancini@gmail.com>
Sun, 29 Nov 2020 20:20:35 +0000 (15:20 -0500)
committerbmancini55 <bmancini@gmail.com>
Wed, 9 Dec 2020 20:02:32 +0000 (15:02 -0500)
commitd183b975da73c40c513feca92e09f8295b70b13f
tree778d7d4a5d30fd87bd892c354b3d1e6cbc239c5a
parent69da2daeae6cad74cbd087e5a6ea3a5376005ee0
Add genesis block hash to NetworkGraph

This changes adds the genesis block hash as a BlockHash to the
NetworkGraph struct. Making the NetworkGraph aware allows the message
handler to validate the chain_hash for received messages. This change
also adds the hash value to the Writeable and Readable methods.
fuzz/src/full_stack.rs
fuzz/src/router.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/routing/network_graph.rs
lightning/src/routing/router.rs