]> git.bitcoin.ninja Git - rust-lightning/commit
Use helper to create dummy blocks
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Thu, 27 Apr 2023 20:31:04 +0000 (13:31 -0700)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Wed, 10 May 2023 18:39:49 +0000 (11:39 -0700)
commit17a74fcfc74936b48923bba5a416be73a01d2367
tree48c552d10f944a24c9fddfc88a01762eddd047f1
parent4f9bcb9958d0981dbc69fcbee70fcc847f786392
Use helper to create dummy blocks

`rust-bitcoin v0.30.0` introduces concrete variants for data members of
block `Header`s. To avoid having to update these across every use, we
introduce new helpers to create dummy blocks and headers, such that the
update process is a bit more straight-forward.
12 files changed:
fuzz/src/chanmon_consistency.rs
fuzz/src/full_stack.rs
lightning-background-processor/src/lib.rs
lightning-persister/src/lib.rs
lightning/src/chain/chainmonitor.rs
lightning/src/chain/channelmonitor.rs
lightning/src/ln/chanmon_update_fail_tests.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/payment_tests.rs
lightning/src/ln/reorg_tests.rs