Skip to content

Commit

Permalink
Remove obsolete Sender keypair
Browse files Browse the repository at this point in the history
  • Loading branch information
DanGould committed Oct 15, 2024
1 parent c2eafff commit 88d5da7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions payjoin/src/send/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,6 @@ impl<'a> SenderBuilder<'a> {
fee_contribution,
payee,
min_fee_rate: self.min_fee_rate,
#[cfg(feature = "v2")]
reply_pair: HpkeKeyPair::gen_keypair(),
})
}
}
Expand All @@ -244,8 +242,6 @@ pub struct Sender {
fee_contribution: Option<(bitcoin::Amount, usize)>,
min_fee_rate: FeeRate,
payee: ScriptBuf,
#[cfg(feature = "v2")]
reply_pair: HpkeKeyPair,
}

impl Sender {
Expand Down Expand Up @@ -980,7 +976,6 @@ mod test {
fee_contribution: None,
min_fee_rate: FeeRate::ZERO,
payee: ScriptBuf::from(vec![0x00]),
reply_pair: HpkeKeyPair::gen_keypair(),
};
let serialized = serde_json::to_string(&req_ctx).unwrap();
let deserialized = serde_json::from_str(&serialized).unwrap();
Expand Down

0 comments on commit 88d5da7

Please sign in to comment.