From a689308f10a10cbd65d5f8194d718ab27d952d60 Mon Sep 17 00:00:00 2001 From: esraa Date: Tue, 28 Nov 2023 16:46:29 +0200 Subject: [PATCH] Add `Clone` to `Params` and `UncheckedProposal` [`payjoin::receive::optional_parameters::Params`] [`payjoin::receive::UncheckedProposal`] --- payjoin/src/receive/mod.rs | 1 + payjoin/src/receive/optional_parameters.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/payjoin/src/receive/mod.rs b/payjoin/src/receive/mod.rs index c24d08bc..4d6256fb 100644 --- a/payjoin/src/receive/mod.rs +++ b/payjoin/src/receive/mod.rs @@ -297,6 +297,7 @@ pub trait Headers { /// transaction with extract_tx_to_schedule_broadcast() and schedule, followed by checking /// that the transaction can be broadcast with check_can_broadcast. Otherwise it is safe to /// call assume_interactive_receive to proceed with validation. +#[derive(Debug, Clone)] pub struct UncheckedProposal { psbt: Psbt, params: Params, diff --git a/payjoin/src/receive/optional_parameters.rs b/payjoin/src/receive/optional_parameters.rs index 711d84f8..ab40d992 100644 --- a/payjoin/src/receive/optional_parameters.rs +++ b/payjoin/src/receive/optional_parameters.rs @@ -4,7 +4,7 @@ use std::fmt; use bitcoin::FeeRate; use log::warn; -#[derive(Debug)] +#[derive(Debug, Clone)] pub(crate) struct Params { // version // v: usize,