aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework/test_framework.py
diff options
context:
space:
mode:
authorlsilva01 <lsilva01@protonmail.com>2021-10-20 00:30:28 -0300
committerlsilva01 <lsilva01@protonmail.com>2021-10-20 00:30:28 -0300
commit7b3c9e4ee8feb552dc0fc4347db2d06e60894a9f (patch)
tree8d2b9169ba14c31e38df4822eadc6edc7d0b45c6 /test/functional/test_framework/test_framework.py
parent23a7d56df2dd42b16e5d9748aad5630e448becd7 (diff)
downloadbitcoin-7b3c9e4ee8feb552dc0fc4347db2d06e60894a9f.tar.xz
Make explicit the node param in init_wallet()
Diffstat (limited to 'test/functional/test_framework/test_framework.py')
-rwxr-xr-xtest/functional/test_framework/test_framework.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py
index 727ac6aed9..ec3561b1f2 100755
--- a/test/functional/test_framework/test_framework.py
+++ b/test/functional/test_framework/test_framework.py
@@ -423,12 +423,12 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
def import_deterministic_coinbase_privkeys(self):
for i in range(self.num_nodes):
- self.init_wallet(i)
+ self.init_wallet(node=i)
- def init_wallet(self, i):
- wallet_name = self.default_wallet_name if self.wallet_names is None else self.wallet_names[i] if i < len(self.wallet_names) else False
+ def init_wallet(self, *, node):
+ wallet_name = self.default_wallet_name if self.wallet_names is None else self.wallet_names[node] if node < len(self.wallet_names) else False
if wallet_name is not False:
- n = self.nodes[i]
+ n = self.nodes[node]
if wallet_name is not None:
n.createwallet(wallet_name=wallet_name, descriptors=self.options.descriptors, load_on_startup=True)
n.importprivkey(privkey=n.get_deterministic_priv_key().key, label='coinbase')