]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Merge pull request #334 from ariard/2019-04-fee-estimation-monitor
authorMatt Corallo <649246+TheBlueMatt@users.noreply.github.com>
Sun, 21 Apr 2019 23:44:58 +0000 (19:44 -0400)
committerGitHub <noreply@github.com>
Sun, 21 Apr 2019 23:44:58 +0000 (19:44 -0400)
Add Fee Estimation in ChannelMonitor

1  2 
fuzz/fuzz_targets/chanmon_fail_consistency.rs
fuzz/fuzz_targets/full_stack_target.rs
src/ln/channelmonitor.rs
src/ln/functional_test_utils.rs

Simple merge
index ecd1529c0c0e8fb37e3b03debb767dcd90eedaf6,c5d6751d9a999c6ecc19119dd8ff121f2bff6092..9a24d503ceea3d5323ab8783f84d274f56d0388f
@@@ -821,10 -821,10 +821,10 @@@ pub fn create_network(node_count: usize
                let mut seed = [0; 32];
                rng.fill_bytes(&mut seed);
                let keys_manager = Arc::new(test_utils::TestKeysInterface::new(&seed, Network::Testnet, Arc::clone(&logger)));
-               let chan_monitor = Arc::new(test_utils::TestChannelMonitor::new(chain_monitor.clone(), tx_broadcaster.clone(), logger.clone()));
+               let chan_monitor = Arc::new(test_utils::TestChannelMonitor::new(chain_monitor.clone(), tx_broadcaster.clone(), logger.clone(), feeest.clone()));
                let mut config = UserConfig::new();
                config.channel_options.announced_channel = true;
 -              config.channel_limits.force_announced_channel_preference = false;
 +              config.peer_channel_config_limits.force_announced_channel_preference = false;
                let node = ChannelManager::new(Network::Testnet, feeest.clone(), chan_monitor.clone(), chain_monitor.clone(), tx_broadcaster.clone(), Arc::clone(&logger), keys_manager.clone(), config).unwrap();
                let router = Router::new(PublicKey::from_secret_key(&secp_ctx, &keys_manager.get_node_secret()), chain_monitor.clone(), Arc::clone(&logger));
                nodes.push(Node { chain_monitor, tx_broadcaster, chan_monitor, node, router, keys_manager, node_seed: seed,