Remove usage of blockdata:: from bitcoin paths

In `rust-bitcoin` the `blockdata` module is a code organisation thing,
it should never have been public. One day those guys would like to
remove it, so as not to be a PITA for `bdk` when they do lets remove all
usage of `blockdata::` now.

Internal change only, no externally visible changes.
This commit is contained in:
Tobin C. Harding
2024-06-26 14:33:00 +10:00
parent 5c7cc30978
commit cf7aca84d1
4 changed files with 4 additions and 5 deletions

View File

@@ -201,8 +201,7 @@ fn new_or_load() -> anyhow::Result<()> {
// wrong genesis hash
{
let exp_blockhash = BlockHash::all_zeros();
let got_blockhash =
bitcoin::blockdata::constants::genesis_block(Network::Testnet).block_hash();
let got_blockhash = bitcoin::constants::genesis_block(Network::Testnet).block_hash();
let db = &mut new_or_load(&file_path).expect("must open db");
let changeset = read(db)?;