Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
fix(projection): Do not panic if missing counterparty peer ID
Browse files Browse the repository at this point in the history
  • Loading branch information
luckysori committed Sep 30, 2022
1 parent 918ffc7 commit 48de104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/src/projection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ impl Cfd {
tx_url_list: HashSet::new(),
},
expiry_timestamp: None,
counterparty: counterparty_peer_id.expect("peer ID to be present"),
counterparty: counterparty_peer_id.unwrap_or_else(PeerId::placeholder),
pending_settlement_proposal_price: None,
aggregated: Aggregated::new(fee_account),
network,
Expand Down

0 comments on commit 48de104

Please sign in to comment.