Skip to content

Commit

Permalink
f - Fix unwraps in fuzzing for node announcement
Browse files Browse the repository at this point in the history
  • Loading branch information
alecchendev committed Feb 7, 2023
1 parent 26bc625 commit 04c84ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fuzz/src/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ pub fn do_test<Out: test_logger::Output>(data: &[u8], out: Out) {
return;
}
let msg = decode_msg_with_len16!(msgs::UnsignedNodeAnnouncement, 288);
node_pks.insert(PublicKey::from_slice(msg.node_id.as_slice()).unwrap());
node_pks.insert(get_pubkey_from_node_id!(msg.node_id));
let _ = net_graph.update_node_from_unsigned_announcement(&msg);
},
1 => {
Expand Down

0 comments on commit 04c84ac

Please sign in to comment.