From 87f74fd4513b27f5affe7025bebc12614d143870 Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Wed, 7 Apr 2021 11:43:32 -0700 Subject: [PATCH] Reuse txdata in functional_test_utils.rs --- lightning/src/ln/functional_test_utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 => { -- 2.39.5