Skip to content

Commit 7239ddb

Browse files
committed
test: make sure node has all transactions
1 parent ee1b9be commit 7239ddb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/p2p_compactblocks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ def test_invalid_tx_in_compactblock(self, test_node):
733733
# Now send the compact block with all transactions prefilled, and
734734
# verify that we don't get disconnected.
735735
comp_block = HeaderAndShortIDs()
736-
comp_block.initialize_from_block(block, prefill_list=[0, 1, 2, 3, 4], use_witness=True)
736+
comp_block.initialize_from_block(block, prefill_list=list(range(len(block.vtx))), use_witness=True)
737737
msg = msg_cmpctblock(comp_block.to_p2p())
738738
test_node.send_and_ping(msg)
739739

0 commit comments

Comments
 (0)