Skip to content

Commit 73cfba4

Browse files
committed
Reuse txdata in functional_test_utils.rs
1 parent 3aed8a6 commit 73cfba4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/functional_test_utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,10 @@ fn do_connect_block<'a, 'b, 'c, 'd>(node: &'a Node<'b, 'c, 'd>, block: &Block, s
129129
match *node.connect_style.borrow() {
130130
ConnectStyle::BestBlockFirst|ConnectStyle::BestBlockFirstSkippingBlocks => {
131131
node.node.update_best_block(&block.header, height);
132-
node.node.transactions_confirmed(&block.header, height, &block.txdata.iter().enumerate().collect::<Vec<_>>());
132+
node.node.transactions_confirmed(&block.header, height, &txdata);
133133
},
134134
ConnectStyle::TransactionsFirst|ConnectStyle::TransactionsFirstSkippingBlocks => {
135-
node.node.transactions_confirmed(&block.header, height, &block.txdata.iter().enumerate().collect::<Vec<_>>());
135+
node.node.transactions_confirmed(&block.header, height, &txdata);
136136
node.node.update_best_block(&block.header, height);
137137
},
138138
ConnectStyle::FullBlockViaListen => {

0 commit comments

Comments
 (0)