Add API for internal addresses

There are good reasons for applications to need to get internal
addresses too. For example creating a transactions that splits an output
into several smaller ones.
This commit is contained in:
LLFourn committed 2022-02-23 09:28:08 +11:00
1 parent 19f028714b
commit 00f0901bac
3 files changed
+85 -25

No files matched your search

+1 -1
View File
@@ -815,7 +815,7 @@ macro_rules! bdk_blockchain_tests {
let mut builder = wallet.build_fee_bump(details.txid).unwrap();
builder.fee_rate(FeeRate::from_sat_per_vb(2.1));
let (mut new_psbt, new_details) = builder.finish().unwrap();
let (mut new_psbt, new_details) = builder.finish().expect("fee bump tx");
let finalized = wallet.sign(&mut new_psbt, Default::default()).unwrap();
assert!(finalized, "Cannot finalize transaction");
wallet.broadcast(&new_psbt.extract_tx()).unwrap();