Skip to content

Commit adf7bde

Browse files
committed
wallet: Add missing replace_by_fee method which calls the thread-rng
1 parent e9a2edc commit adf7bde

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/wallet/mod.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3039,6 +3039,20 @@ impl Wallet {
30393039
)
30403040
}
30413041

3042+
/// Creates a Replace-By-Fee transaction (RBF) and returns the updated [`Psbt`] and
3043+
/// [`Finalizer`].
3044+
///
3045+
/// ### Parameters:
3046+
///
3047+
/// - `params`: [`ReplaceParams`]
3048+
#[cfg(feature = "std")]
3049+
pub fn replace_by_fee(
3050+
&self,
3051+
params: ReplaceParams,
3052+
) -> Result<(Psbt, Finalizer), ReplaceByFeeError> {
3053+
self.replace_by_fee_with_aux_rand(params, &mut rand::thread_rng())
3054+
}
3055+
30423056
/// Creates a Replace-By-Fee transaction (RBF) and returns the updated [`Psbt`] and
30433057
/// [`Finalizer`].
30443058
///

0 commit comments

Comments
 (0)