Make TxBuilder actually Clone

it derived Clone but in practice it was never clone because some of the
parameters were not Clone.
This commit is contained in:
LLFourn
2021-02-08 15:25:44 +11:00
parent a7183f34ef
commit 9a918f285d
2 changed files with 13 additions and 2 deletions

View File

@@ -163,7 +163,7 @@ pub trait CoinSelectionAlgorithm<D: Database>: std::fmt::Debug {
///
/// This coin selection algorithm sorts the available UTXOs by value and then picks them starting
/// from the largest ones until the required amount is reached.
#[derive(Debug, Default)]
#[derive(Debug, Default, Clone, Copy)]
pub struct LargestFirstCoinSelection;
impl<D: Database> CoinSelectionAlgorithm<D> for LargestFirstCoinSelection {