Skip to content

Commit

Permalink
Add Clone to Params and UncheckedProposal
Browse files Browse the repository at this point in the history
    [`payjoin::receive::optional_parameters::Params`]
    [`payjoin::receive::UncheckedProposal`]
  • Loading branch information
jbesraa committed Nov 28, 2023
1 parent aa2ee69 commit a689308
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions payjoin/src/receive/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion payjoin/src/receive/optional_parameters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a689308

Please sign in to comment.