Skip to content

Commit 71deb00

Browse files
committed
f - fix fuzz tests
1 parent 98ae123 commit 71deb00

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fuzz/src/chanmon_consistency.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ pub fn do_test<Out: Output>(data: &[u8], underlying_out: Out, anchors: bool) {
11381138
break;
11391139
}
11401140
out.locked_write(format!("Delivering commitment_signed from node {} to node {}.\n", $node, idx).as_bytes());
1141-
dest.handle_commitment_signed(nodes[$node].get_our_node_id(), &commitment_signed);
1141+
dest.handle_commitment_signed_batch(nodes[$node].get_our_node_id(), &commitment_signed);
11421142
break;
11431143
}
11441144
}

lightning/src/ln/msgs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1934,7 +1934,7 @@ pub trait ChannelMessageHandler : BaseMessageHandler {
19341934
/// Handle an incoming `revoke_and_ack` message from the given peer.
19351935
fn handle_revoke_and_ack(&self, their_node_id: PublicKey, msg: &RevokeAndACK);
19361936

1937-
#[cfg(test)]
1937+
#[cfg(any(test, fuzzing))]
19381938
/// Handle a batch of incoming `commitment_signed` message from the given peer.
19391939
fn handle_commitment_signed_batch(&self, their_node_id: PublicKey, batch: &Vec<CommitmentSigned>) {
19401940
for msg in batch {

0 commit comments

Comments
 (0)