]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Disable push_msat in full_stack_target temporarily
authorMatt Corallo <git@bluematt.me>
Fri, 17 Aug 2018 21:36:22 +0000 (17:36 -0400)
committerMatt Corallo <git@bluematt.me>
Mon, 20 Aug 2018 17:58:31 +0000 (13:58 -0400)
fuzz/fuzz_targets/full_stack_target.rs

index 8e3bea9c01dd40d1c6b3144a3954a7814edd4c0d..5104b70777797e4f26f9b1262c677c9dcd09d46a 100644 (file)
@@ -315,7 +315,9 @@ pub fn do_test(data: &[u8]) {
                                if !peers.borrow()[peer_id as usize] { return; }
                                let their_key = get_pubkey!();
                                let chan_value = slice_to_be24(get_slice!(3)) as u64;
-                               let push_msat_value = slice_to_be24(get_slice!(3)) as u64;
+                               //let push_msat_value = slice_to_be24(get_slice!(3)) as u64;
+                               // Temporarily don't read extra bytes to avoid breaking existing test-cases
+                               let push_msat_value = 0;
                                if channelmanager.create_channel(their_key, chan_value, push_msat_value, 0).is_err() { return; }
                        },
                        6 => {