Skip to content

Commit a839688

Browse files
committed
f
1 parent 8721105 commit a839688

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

src/payment/payjoin/mod.rs

+11-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,17 @@ impl PayjoinPayment {
8181
peer_store: Arc<PeerStore<Arc<FilesystemLogger>>>, channel_manager: Arc<ChannelManager>,
8282
connection_manager: Arc<ConnectionManager<Arc<FilesystemLogger>>>,
8383
) -> Self {
84-
Self { runtime, handler, receiver, config, logger, wallet, peer_store, channel_manager, connection_manager }
84+
Self {
85+
runtime,
86+
handler,
87+
receiver,
88+
config,
89+
logger,
90+
wallet,
91+
peer_store,
92+
channel_manager,
93+
connection_manager,
94+
}
8595
}
8696

8797
/// Send a Payjoin transaction to the address specified in the `payjoin_uri`.

tests/common/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ pub(crate) use expect_payment_successful_event;
150150
macro_rules! expect_payjoin_tx_sent_successfully_event {
151151
($node: expr) => {{
152152
match $node.wait_next_event() {
153-
ref e @ Event::PayjoinTxSendSuccess { txid } => {
153+
ref e @ Event::PayjoinPaymentSuccess { txid, .. } => {
154154
println!("{} got event {:?}", $node.node_id(), e);
155155
$node.event_handled();
156156
txid

tests/integration_tests_payjoin_with_channel_opening.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,7 @@ fn send_receive_payjoin_transaction_with_channel_opening() {
6464

6565
assert_eq!(node_a_pj_receiver.list_peers().get(0).unwrap().is_connected, true);
6666
assert_eq!(node_a_pj_receiver.list_peers().get(0).unwrap().is_persisted, true);
67-
assert_eq!(
68-
node_a_pj_receiver.list_peers().get(0).unwrap().node_id,
69-
node_b_pj_sender.node_id()
70-
);
67+
assert_eq!(node_a_pj_receiver.list_peers().get(0).unwrap().node_id, node_b_pj_sender.node_id());
7168

7269
let invoice_amount_1_msat = 2500_000;
7370
let invoice =

0 commit comments

Comments
 (0)