]> git.bitcoin.ninja Git - rust-lightning/commit
Use ChainHash instead of BlockHash as applicable
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 13 Oct 2023 22:01:19 +0000 (17:01 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 16 Oct 2023 18:29:53 +0000 (13:29 -0500)
commit54f96ef944423eac98d302fbc7cdcdc136d58312
tree9ea66f9dc69655c4049abd4d3043abea58e40a02
parentb1d3aa86a455bce9321ac70560fbf549a8e43a51
Use ChainHash instead of BlockHash as applicable

ChainHash is more appropriate for places where an arbitrary BlockHash is
not desirable. This type was introduced in later versions of the bitcoin
crate, thus BlockHash was used instead.

Using ChainHash also makes it easier to check if ChannelManager is
compatible with an Offer.
19 files changed:
fuzz/src/full_stack.rs
fuzz/src/router.rs
lightning-block-sync/src/gossip.rs
lightning-net-tokio/src/lib.rs
lightning-rapid-gossip-sync/src/processing.rs
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/msgs.rs
lightning/src/ln/onion_route_tests.rs
lightning/src/ln/peer_handler.rs
lightning/src/ln/priv_short_conf_tests.rs
lightning/src/routing/gossip.rs
lightning/src/routing/router.rs
lightning/src/routing/scoring.rs
lightning/src/routing/test_utils.rs
lightning/src/routing/utxo.rs
lightning/src/util/scid_utils.rs
lightning/src/util/test_utils.rs