Skip to content

Commit 596565f

Browse files
committed
psbt: Add methods PsbtParams::version, fallback_sequence
1 parent 71ca931 commit 596565f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/psbt/params.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,21 @@ impl PsbtParams {
317317
self
318318
}
319319

320+
/// Set the transaction [`Version`].
321+
pub fn version(&mut self, version: Version) -> &mut Self {
322+
self.version = Some(version);
323+
self
324+
}
325+
326+
/// Set the [`Sequence`] value to be used as a fallback if not specified by the input.
327+
pub fn fallback_sequence(&mut self, sequence: Sequence) -> &mut Self {
328+
self.fallback_sequence = Some(sequence);
329+
self
330+
}
331+
332+
// TODO(@valuedmammal): Should we expose an option to set the `longterm_feerate`, and/or
333+
// set the coin-select `ChangePolicy`?
334+
320335
/// Fill in the global [`Psbt::xpub`]s field with the extended keys of the wallet's
321336
/// descriptors.
322337
///

0 commit comments

Comments
 (0)