@@ -190,7 +190,7 @@ impl<'a, D, Cs: Clone, Ctx> Clone for TxBuilder<'a, D, Cs, Ctx> {
190
190
}
191
191
192
192
// methods supported by both contexts, for any CoinSelectionAlgorithm
193
- impl < ' a , D , Cs : CoinSelectionAlgorithm , Ctx : TxBuilderContext > TxBuilder < ' a , D , Cs , Ctx > {
193
+ impl < ' a , D , Cs , Ctx > TxBuilder < ' a , D , Cs , Ctx > {
194
194
/// Set a custom fee rate
195
195
/// The fee_rate method sets the mining fee paid by the transaction as a rate on its size.
196
196
/// This means that the total fee paid is equal to this rate * size of the transaction in virtual Bytes (vB) or Weight Unit (wu).
@@ -574,20 +574,6 @@ impl<'a, D, Cs: CoinSelectionAlgorithm, Ctx: TxBuilderContext> TxBuilder<'a, D,
574
574
}
575
575
}
576
576
577
- /// Finish building the transaction.
578
- ///
579
- /// Returns a new [`Psbt`] per [`BIP174`].
580
- ///
581
- /// [`BIP174`]: https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki
582
- pub fn finish ( self ) -> Result < Psbt , CreateTxError < D :: WriteError > >
583
- where
584
- D : PersistBackend < ChangeSet > ,
585
- {
586
- self . wallet
587
- . borrow_mut ( )
588
- . create_tx ( self . coin_selection , self . params )
589
- }
590
-
591
577
/// Enable signaling RBF
592
578
///
593
579
/// This will use the default nSequence value of `0xFFFFFFFD`.
@@ -634,6 +620,22 @@ impl<'a, D, Cs: CoinSelectionAlgorithm, Ctx: TxBuilderContext> TxBuilder<'a, D,
634
620
}
635
621
}
636
622
623
+ impl < ' a , D , Cs : CoinSelectionAlgorithm , Ctx > TxBuilder < ' a , D , Cs , Ctx > {
624
+ /// Finish building the transaction.
625
+ ///
626
+ /// Returns a new [`Psbt`] per [`BIP174`].
627
+ ///
628
+ /// [`BIP174`]: https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki
629
+ pub fn finish ( self ) -> Result < Psbt , CreateTxError < D :: WriteError > >
630
+ where
631
+ D : PersistBackend < ChangeSet > ,
632
+ {
633
+ self . wallet
634
+ . borrow_mut ( )
635
+ . create_tx ( self . coin_selection , self . params )
636
+ }
637
+ }
638
+
637
639
#[ derive( Debug ) ]
638
640
/// Error returned from [`TxBuilder::add_utxo`] and [`TxBuilder::add_utxos`]
639
641
pub enum AddUtxoError {
0 commit comments