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
While the spec only includes commitment_signed messages in batches,
there may be other types of batches in the future. Generalize the
message batching code to allow for other types in the future.
let error = format!("Peer {} sent batched commitment_signed for the wrong channel (expected: {}, actual: {})", log_pubkey!(their_node_id), channel_id,&msg.channel_id);
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), channel_id);
1889
+
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, channel_id);
1897
+
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);
1854
1898
returnErr(PeerHandleError{}.into());
1855
1899
}
1856
1900
}
1857
1901
1858
-
if buffer.len() == *batch_size {
1859
-
let(channel_id, _, batch) = peer_lock.commitment_signed_batch.take().expect("batch should have been inserted");
1902
+
if buffer.len() == message_batch.batch_size{
1903
+
letMessageBatch{ channel_id,batch_size: _, messages } = peer_lock.message_batch.take().expect("batch should have been inserted");
0 commit comments