You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fail channel for batched commitment_signed appropriately
If a message in a commitment_signed batch does not contain a
funding_txid or has duplicates, the channel should be failed. Move this
check from PeerManager to FundedChannel such that this can be done.
let error = format!("Peer {} sent batched commitment_signed for the wrong channel (expected: {}, actual: {})", log_pubkey!(their_node_id), message_batch.channel_id,&msg.channel_id);
log_debug!(logger,"Peer {} sent batched commitment_signed without a funding_txid for channel {}", log_pubkey!(their_node_id), message_batch.channel_id);
log_debug!(logger,"Peer {} sent batched commitment_signed with duplicate funding_txid {} for channel {}", log_pubkey!(their_node_id), funding_txid, message_batch.channel_id);
1898
-
returnErr(PeerHandleError{}.into());
1899
-
}
1900
-
}
1883
+
messages.push(msg);
1901
1884
1902
-
ifbuffer.len() == message_batch.batch_size{
1885
+
ifmessages.len() == message_batch.batch_size{
1903
1886
letMessageBatch{ channel_id,batch_size: _, messages } = peer_lock.message_batch.take().expect("batch should have been inserted");
0 commit comments