Make channel open confs configurable (and change from 12 to 6)
[rust-lightning] / fuzz / fuzz_targets / chanmon_fail_consistency.rs
index 4db158f28e173bd0be3c693f505b64ad54b8afb2..1cfc4df06078704451cfa44d56beb890029051c0 100644 (file)
@@ -148,7 +148,7 @@ pub fn do_test(data: &[u8]) {
                        let mut config = UserConfig::new();
                        config.channel_options.fee_proportional_millionths = 0;
                        config.channel_options.announced_channel = true;
-                       config.channel_limits.min_dust_limit_satoshis = 0;
+                       config.peer_channel_config_limits.min_dust_limit_satoshis = 0;
                        (ChannelManager::new(Network::Bitcoin, fee_est.clone(), monitor.clone(), watch.clone(), broadcast.clone(), Arc::clone(&logger), keys_manager.clone(), config).unwrap(),
                        monitor)
                } }
@@ -439,7 +439,7 @@ pub fn do_test(data: &[u8]) {
                                        match event {
                                                events::Event::PaymentReceived { payment_hash, .. } => {
                                                        if $fail {
-                                                               assert!(nodes[$node].fail_htlc_backwards(&payment_hash, 0));
+                                                               assert!(nodes[$node].fail_htlc_backwards(&payment_hash));
                                                        } else {
                                                                assert!(nodes[$node].claim_funds(PaymentPreimage(payment_hash.0)));
                                                        }