Skip to content

Commit 83be977

Browse files
committed
psbt: Add method drain_wallet
1 parent 0f12110 commit 83be977

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/psbt/params.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,15 @@ impl PsbtParams {
270270
self
271271
}
272272

273+
/// Drain wallet.
274+
///
275+
/// This will force selection of the available input candidates. As such, the option is only
276+
/// applied to inputs that meet the spending criteria.
277+
pub fn drain_wallet(&mut self) -> &mut Self {
278+
self.drain_wallet = true;
279+
self
280+
}
281+
273282
/// Fill in the global [`Psbt::xpub`]s field with the extended keys of the wallet's
274283
/// descriptors.
275284
///

0 commit comments

Comments
 (0)