From: Jeffrey Czyz Date: Wed, 7 Apr 2021 18:43:32 +0000 (-0700) Subject: Reuse txdata in functional_test_utils.rs X-Git-Tag: v0.0.14~24^2~3 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=87f74fd4513b27f5affe7025bebc12614d143870;p=rust-lightning Reuse txdata in functional_test_utils.rs --- diff --git a/lightning/src/ln/functional_test_utils.rs b/lightning/src/ln/functional_test_utils.rs index 9e9c1f16c..8dae29fdc 100644 --- a/lightning/src/ln/functional_test_utils.rs +++ b/lightning/src/ln/functional_test_utils.rs @@ -130,10 +130,10 @@ fn do_connect_block<'a, 'b, 'c, 'd>(node: &'a Node<'b, 'c, 'd>, block: &Block, s match *node.connect_style.borrow() { ConnectStyle::BestBlockFirst|ConnectStyle::BestBlockFirstSkippingBlocks => { node.node.update_best_block(&block.header, height); - node.node.transactions_confirmed(&block.header, height, &block.txdata.iter().enumerate().collect::>()); + node.node.transactions_confirmed(&block.header, height, &txdata); }, ConnectStyle::TransactionsFirst|ConnectStyle::TransactionsFirstSkippingBlocks => { - node.node.transactions_confirmed(&block.header, height, &block.txdata.iter().enumerate().collect::>()); + node.node.transactions_confirmed(&block.header, height, &txdata); node.node.update_best_block(&block.header, height); }, ConnectStyle::FullBlockViaListen => {