Skip to content

Commit bdbad0b

Browse files
committed
fixup! docs: add KeyRing based examples
1 parent b0a312f commit bdbad0b

5 files changed

Lines changed: 0 additions & 5 deletions

File tree

examples/bitcoind_rpc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ fn main() -> anyhow::Result<()> {
9898
let mut db = Connection::open(args.db_path)?;
9999

100100
let mut params = LoadParams::new()
101-
.check_default(KeychainKind::External)
102101
.check_descriptor(KeychainKind::External, Some(args.descriptor.clone()))
103102
.check_genesis_hash(bitcoin::constants::genesis_block(args.network).block_hash())
104103
.check_network(args.network);

examples/electrum.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ const ELECTRUM_URL: &str = "ssl://mempool.space:40002";
2727
fn main() -> Result<(), anyhow::Error> {
2828
let mut db = Connection::open(DB_PATH)?;
2929
let params = LoadParams::new()
30-
.check_default(KeychainKind::External)
3130
.check_descriptor(KeychainKind::External, Some(EXTERNAL_DESC))
3231
.check_descriptor(KeychainKind::Internal, Some(INTERNAL_DESC))
3332
.check_genesis_hash(bitcoin::constants::genesis_block(NETWORK).block_hash())

examples/esplora_async.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const ESPLORA_URL: &str = "https://mempool.space/testnet4/api";
2424
async fn main() -> Result<(), anyhow::Error> {
2525
let mut db = Connection::open(DB_PATH)?;
2626
let params = LoadParams::new()
27-
.check_default(KeychainKind::External)
2827
.check_descriptor(KeychainKind::External, Some(EXTERNAL_DESC))
2928
.check_descriptor(KeychainKind::Internal, Some(INTERNAL_DESC))
3029
.check_genesis_hash(bitcoin::constants::genesis_block(NETWORK).block_hash())

examples/esplora_blocking.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const ESPLORA_URL: &str = "https://mempool.space/testnet4/api";
2424
fn main() -> Result<(), anyhow::Error> {
2525
let mut db = Connection::open(DB_PATH)?;
2626
let params = LoadParams::new()
27-
.check_default(KeychainKind::External)
2827
.check_descriptor(KeychainKind::External, Some(EXTERNAL_DESC))
2928
.check_descriptor(KeychainKind::Internal, Some(INTERNAL_DESC))
3029
.check_genesis_hash(bitcoin::constants::genesis_block(NETWORK).block_hash())

examples/multi_keychain/persistence.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ fn main() {
122122

123123
// Set up load parameters - these verify the wallet matches expectations
124124
let params = LoadParams::<AccountType>::new()
125-
.check_default(AccountType::Savings)
126125
.check_descriptor(AccountType::Savings, Some(SAVINGS_DESC))
127126
.check_descriptor(AccountType::Spending, Some(SPENDING_DESC))
128127
.check_descriptor(AccountType::Donations, Some(DONATIONS_WRONG_DESC))

0 commit comments

Comments
 (0)