use core::convert::AsRef;
use bdk_chain::ConfirmationTime;
-use bitcoin::blockdata::transaction::{OutPoint, Sequence, TxOut};
+use bitcoin::transaction::{OutPoint, Sequence, TxOut};
use bitcoin::{psbt, Weight};
use serde::{Deserialize, Serialize};
#[doc(hidden)]
macro_rules! floating_rate {
($rate:expr) => {{
- use $crate::bitcoin::blockdata::constants::WITNESS_SCALE_FACTOR;
+ use $crate::bitcoin::constants::WITNESS_SCALE_FACTOR;
// sat_kwu / 250.0 -> sat_vb
$rate.to_sat_per_kwu() as f64 / ((1000 / WITNESS_SCALE_FACTOR) as f64)
}};
// 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)?;
use bitcoin::{
absolute,
bip32::{DerivationPath, Fingerprint, KeySource},
- blockdata::transaction::Sequence,
ecdsa,
hashes::{hash160, ripemd160, sha256},
secp256k1::Secp256k1,
taproot::{self, LeafVersion, TapLeafHash},
+ transaction::Sequence,
ScriptBuf, TxIn, Witness, WitnessVersion,
};
use miniscript::{