Implement Writer/Reader
[rust-lightning] / fuzz / fuzz_targets / router_target.rs
index d8755956202a17d153825c79c66b4f50730a73e3..4669f1f8c4afe86be15ba2cacc24be95deacc0d0 100644 (file)
@@ -76,7 +76,7 @@ struct DummyChainWatcher {
 }
 
 impl ChainWatchInterface for DummyChainWatcher {
-       fn install_watch_script(&self, _script_pub_key: &Script) { }
+       fn install_watch_tx(&self, _txid: &Sha256dHash, _script_pub_key: &Script) { }
        fn install_watch_outpoint(&self, _outpoint: (Sha256dHash, u32), _out_script: &Script) { }
        fn watch_all_txn(&self) { }
        fn register_listener(&self, _listener: Weak<ChainListener>) { }
@@ -131,6 +131,8 @@ pub fn do_test(data: &[u8]) {
                                        msgs::DecodeError::ExtraAddressesPerType => return,
                                        msgs::DecodeError::BadLengthDescriptor => return,
                                        msgs::DecodeError::ShortRead => panic!("We picked the length..."),
+                                       msgs::DecodeError::InvalidValue => panic!("Writeable not used yet..."),
+                                       msgs::DecodeError::Io(_) => panic!("Writeable not used yet..."),
                                }
                        }
                }