Skip to content

Commit

Permalink
f - duplicate funding_txid message update
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorTigerstrom committed Jul 8, 2022
1 parent c09903b commit 81fc01f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lightning/src/ln/channelmanager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4542,10 +4542,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
match id_to_peer.entry(chan.channel_id()) {
hash_map::Entry::Occupied(_) => {
return Err(MsgHandleErrInternal::send_err_msg_no_close(
"Funding txid already exists with for another peer (or likely the
same peer using a different id). The counterparty must have sent a
txid in the FundingCreated msgs for a tx with a different
script_pubkey than the one agreed upon".to_owned(),
"The funding_created message had the same funding_txid as an existing channel - funding is not possible".to_owned(),
funding_msg.channel_id))
},
hash_map::Entry::Vacant(i_e) => {
Expand Down

0 comments on commit 81fc01f

Please sign in to comment.