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);
1887
+
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);
1895
+
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);
1852
1896
returnErr(PeerHandleError{}.into());
1853
1897
}
1854
1898
}
1855
1899
1856
-
if buffer.len() == *batch_size {
1857
-
let(channel_id, _, batch) = peer_lock.commitment_signed_batch.take().expect("batch should have been inserted");
1900
+
if buffer.len() == message_batch.batch_size{
1901
+
letMessageBatch{ channel_id,batch_size: _, messages } = peer_lock.message_batch.take().expect("batch should have been inserted");
0 commit comments