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
Update commitment_signed message to contain the funding_txid instead of
both that and a batch_size. The spec was updated to batch messages using
start_batch, which contains the batch_size. This commit also updates
PeerManager to batch commitment_signed messages in this manner instead
of the previous custom approach.
log_debug!(logger,"Peer {} sent batched commitment_signed for the wrong channel (expected: {}, actual: {})", log_pubkey!(their_node_id), channel_id,&msg.channel_id);
1783
-
returnErr(PeerHandleError{}.into());
1829
+
let error = format!("Peer {} sent batched commitment_signed for the wrong channel (expected: {}, actual: {})", log_pubkey!(their_node_id), channel_id,&msg.channel_id);
log_debug!(logger,"Peer {} sent batched commitment_signed with duplicate funding_txid {} for channel {}", log_pubkey!(their_node_id),channel_id,&batch.funding_txid);
1853
+
log_debug!(logger,"Peer {} sent batched commitment_signed with duplicate funding_txid {} for channel {}", log_pubkey!(their_node_id),funding_txid, channel_id);
1797
1854
returnErr(PeerHandleError{}.into());
1798
1855
}
1799
1856
}
1800
1857
1801
-
if buffer.len()>= batch_size {
1802
-
let(channel_id, batch) = peer_lock.commitment_signed_batch.take().expect("batch should have been inserted");
1858
+
if buffer.len()== *batch_size {
1859
+
let(channel_id,_,batch) = peer_lock.commitment_signed_batch.take().expect("batch should have been inserted");
log_debug!(logger,"Peer {} sent non-batched commitment_signed for channel {} when expecting batched commitment_signed", log_pubkey!(their_node_id),&msg.channel_id);
0 commit comments