-use bitcoin::{OutPoint, TxOut, Txid};
+use bitcoin::{constants::COINBASE_MATURITY, OutPoint, TxOut, Txid};
-use crate::{Anchor, COINBASE_MATURITY};
+use crate::Anchor;
/// Represents the observed position of some chain data.
///
#[macro_use]
extern crate std;
-/// How many confirmations are needed f or a coinbase output to be spent.
-pub const COINBASE_MATURITY: u32 = 100;
-
/// A wrapper that we use to impl remote traits for types in our crate or dependency crates.
pub struct Impl<T>(pub T);
use bitcoin::{
absolute,
consensus::encode::serialize,
- constants::genesis_block,
+ constants::{genesis_block, COINBASE_MATURITY},
psbt,
secp256k1::Secp256k1,
sighash::{EcdsaSighashType, TapSighashType},
pub use persisted::*;
pub use utils::IsDust;
-const COINBASE_MATURITY: u32 = 100;
-
/// A Bitcoin wallet
///
/// The `Wallet` acts as a way of coherently interfacing with output descriptors and related transactions.
use anyhow::Context;
use assert_matches::assert_matches;
-use bdk_chain::COINBASE_MATURITY;
use bdk_chain::{BlockId, ChainPosition, ConfirmationBlockTime};
use bdk_wallet::coin_selection::{self, LargestFirstCoinSelection};
use bdk_wallet::descriptor::{calc_checksum, DescriptorError, IntoWalletDescriptor};
use bdk_wallet::tx_builder::AddForeignUtxoError;
use bdk_wallet::{AddressInfo, Balance, ChangeSet, Wallet, WalletPersister, WalletTx};
use bdk_wallet::{KeychainKind, LoadError, LoadMismatch, LoadWithPersistError};
-use bitcoin::constants::ChainHash;
+use bitcoin::constants::{ChainHash, COINBASE_MATURITY};
use bitcoin::hashes::Hash;
use bitcoin::key::Secp256k1;
use bitcoin::psbt;