]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Remove unused node_id tracking in ChannelManager tests 2018-08-fuzz-fixes-6
authorMatt Corallo <git@bluematt.me>
Fri, 24 Aug 2018 20:48:24 +0000 (16:48 -0400)
committerMatt Corallo <git@bluematt.me>
Fri, 24 Aug 2018 20:58:27 +0000 (16:58 -0400)
src/ln/channelmanager.rs

index 20e6f3739ec63ee3eee62715cd21bb8a21f4805e..a360c376a16282f450c2b7b8dc62f10547e89f98 100644 (file)
@@ -2256,7 +2256,6 @@ mod tests {
                chain_monitor: Arc<chaininterface::ChainWatchInterfaceUtil>,
                tx_broadcaster: Arc<test_utils::TestBroadcaster>,
                chan_monitor: Arc<test_utils::TestChannelMonitor>,
-               node_id: SecretKey,
                node: Arc<ChannelManager>,
                router: Router,
        }
@@ -2803,7 +2802,7 @@ mod tests {
                        };
                        let node = ChannelManager::new(node_id.clone(), 0, true, Network::Testnet, feeest.clone(), chan_monitor.clone(), chain_monitor.clone(), tx_broadcaster.clone(), Arc::clone(&logger)).unwrap();
                        let router = Router::new(PublicKey::from_secret_key(&secp_ctx, &node_id), Arc::clone(&logger));
-                       nodes.push(Node { feeest, chain_monitor, tx_broadcaster, chan_monitor, node_id, node, router });
+                       nodes.push(Node { feeest, chain_monitor, tx_broadcaster, chan_monitor, node, router });
                }
 
                nodes