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);
1781
-
returnErr(PeerHandleError{}.into());
1827
+
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);
1851
+
log_debug!(logger,"Peer {} sent batched commitment_signed with duplicate funding_txid {} for channel {}", log_pubkey!(their_node_id),funding_txid, channel_id);
1795
1852
returnErr(PeerHandleError{}.into());
1796
1853
}
1797
1854
}
1798
1855
1799
-
if buffer.len()>= batch_size {
1800
-
let(channel_id, batch) = peer_lock.commitment_signed_batch.take().expect("batch should have been inserted");
1856
+
if buffer.len()== *batch_size {
1857
+
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