Skip to content

Commit f8b0b19

Browse files
author
MarcoFalke
committed
Merge #16920: test: Fix extra_args in wallet_import_rescan.py
fa2e038 test: Fix extra_args in wallet_import_rescan.py (MarcoFalke) Pull request description: Bug introduced by me (:man_facepalming:) in fa25668 For reference: ``` >>> a = [[]]*2 >>> a[0] += ['ONE'] >>> a [['ONE'], ['ONE']] >>> a = [[] for _ in range(2)] >>> a[0] += ['ONE'] >>> a [['ONE'], []] ACKs for top commit: theStack: utACK fa2e038 Tree-SHA512: 7d75a0d06233d013d62198ea95793612242254d5d90f393d01b2beef5abc78d6e85c796532311638f16cfed3b66a7ae41a108c0fe6f0f5d7f6616b042c670df7
2 parents 0432149 + fa2e038 commit f8b0b19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/wallet_import_rescan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def skip_test_if_missing_module(self):
150150
self.skip_if_no_wallet()
151151

152152
def setup_network(self):
153-
self.extra_args = [[]] * self.num_nodes
153+
self.extra_args = [[] for _ in range(self.num_nodes)]
154154
for i, import_node in enumerate(IMPORT_NODES, 2):
155155
if import_node.prune:
156156
self.extra_args[i] += ["-prune=1"]

0 commit comments

Comments
 (0)