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

Commit

Permalink
Merge pull request #3070 from itchysats/fix-projection-peer-id
Browse files Browse the repository at this point in the history
Do not panic if missing counterparty peer ID
  • Loading branch information
luckysori committed Sep 30, 2022
2 parents 918ffc7 + 48de104 commit 902b276
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 902b276

Please sign in to comment.