def init_wallet(self, i)
to def init_wallet(self, *, node)
to make the node parameter explicit, as suggested in #22794 (review) .
def init_wallet(self, i)
to def init_wallet(self, *, node)
to make the node parameter explicit, as suggested in #22794 (review) .
tested ACK 7b3c9e4.
This is a nice change! The function call self.init_wallet(node=0)
is more understandable compared to self.init_wallet(0)
. This call format is also consistent with other functions from the codebase like test_cltv_info and test_dersig_info which are defined in a similar manner. Verified that there aren’t other instances making the init_wallet()
call.
123@@ -124,9 +124,9 @@ def restore_wallet_existent_name(self):
124 assert_raises_rpc_error(-8, "Wallet name already exists.", node.restorewallet, wallet_name, wallet_file)
125
126 def init_three(self):
127- self.init_wallet(0)
128- self.init_wallet(1)
129- self.init_wallet(2)
130+ self.init_wallet(node=0)
131+ self.init_wallet(node=1)
132+ self.init_wallet(node=2)
0 def init_three(self):
1- self.init_wallet(node=0)
2- self.init_wallet(node=1)
3- self.init_wallet(node=2)
4+ for n in range(3):
5+ self.init_wallet(node=n)
lsilva01
brunoerg
stratospher
jonatack
Labels
Tests