Browse Source

Remove deadlock after triggering collaborative settlement

chore/leaner-release-process
Mariusz Klochowicz 3 years ago
parent
commit
17673e50cc
No known key found for this signature in database GPG Key ID: 470C865699C8D4D
  1. 6
      daemon/src/taker_cfd.rs

6
daemon/src/taker_cfd.rs

@ -626,8 +626,12 @@ where
let proposal = self.get_settlement_proposal(order_id)?;
let (tx, sig_taker) = dlc.close_transaction(proposal)?;
// Need to use `do_send_async` here because this handler is called in
// context of a message arriving over the wire, and would result in a
// deadlock otherwise.
#[allow(clippy::disallowed_method)]
self.conn_actor
.send(wire::TakerToMaker::InitiateSettlement {
.do_send_async(wire::TakerToMaker::InitiateSettlement {
order_id,
sig_taker,
})

Loading…
Cancel
Save