Skip to content

Commit

Permalink
fix bug where listener crashes if tx already received
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Hahn committed Jan 15, 2024
1 parent 6ea9056 commit 4bdafcf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions impls/src/adapters/epicbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -481,17 +481,16 @@ where
if slate.tx.inputs().len() == 0 {
// TODO: invoicing
} else {
info!("Received new transaction (foreign::receive_tx)");
let ret_slate = foreign::receive_tx(
info!("Receive new transaction (foreign::receive_tx)");
foreign::receive_tx(
&mut **w,
self.keychain_mask.as_ref(),
&slate,
None,
None,
address,
false,
);
*slate = ret_slate.unwrap();
)?;
}

Ok(false)
Expand Down

0 comments on commit 4bdafcf

Please # to comment.