Skip to content

Commit 67fd6bb

Browse files
committed
functional test uses getwalletpakinfo instead
1 parent 0eee1a1 commit 67fd6bb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/functional/feature_pak.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def pak_to_option(pak):
1414
# 'reject' and finally to pak2. There are 5 nodes each with different
1515
# configurations
1616
# All nodes validate pegouts but the first one
17-
args = [["-acceptnonstdtxn=1"]] + [["-acceptnonstdtxn=0"]]*4
17+
args = [["-acceptnonstdtxn=1"]] + [["-acceptnonstdtxn=0", "-enforce_pak=1"]]*4
1818
# The node at index 0 doesn't validate pegouts
1919
i_novalidate = 0
2020
# The node at index 1 has no paklist in config
@@ -253,7 +253,7 @@ def compare(actual, expected):
253253
info_results = []
254254
for i in range(5):
255255
init_results += [ self.nodes[i].initpegoutwallet(xpub) ]
256-
info_results += [ self.nodes[i].getpakinfo() ]
256+
info_results += [ self.nodes[i].getwalletpakinfo() ]
257257
assert_equal(init_results[i]["address_lookahead"], info_results[i]["address_lookahead"])
258258
assert_equal(init_results[i]["liquid_pak"], info_results[i]["liquid_pak"])
259259
assert_equal(init_results[i]["liquid_pak_address"], info_results[i]["liquid_pak_address"])
@@ -276,7 +276,7 @@ def compare(actual, expected):
276276
errorString = ""
277277

278278
new_init = self.nodes[i_novalidate].initpegoutwallet(xpub, 2)
279-
assert_equal(self.nodes[i_novalidate].getpakinfo()["derivation_path"], "/0/2")
279+
assert_equal(self.nodes[i_novalidate].getwalletpakinfo()["derivation_path"], "/0/2")
280280
assert_equal(new_init["address_lookahead"][0], init_results[i_novalidate]["address_lookahead"][2])
281281
assert(new_init["liquid_pak"] != init_results[i_novalidate]["liquid_pak"])
282282

@@ -290,7 +290,7 @@ def compare(actual, expected):
290290
self._setup_network(extra_args, False)
291291

292292
# Check PAK settings persistance in wallet across restart
293-
restarted_info = self.nodes[i_novalidate].getpakinfo()
293+
restarted_info = self.nodes[i_novalidate].getwalletpakinfo()
294294
assert_equal(restarted_info["bitcoin_xpub"], xpub)
295295
assert_equal(restarted_info["liquid_pak"], new_init["liquid_pak"])
296296
assert_equal(restarted_info["derivation_path"], "/0/2")
@@ -312,15 +312,15 @@ def compare(actual, expected):
312312
errorString = ""
313313

314314
# Ensure counter is untouched
315-
assert_equal(self.nodes[i_novalidate].getpakinfo()["derivation_path"], "/0/2")
315+
assert_equal(self.nodes[i_novalidate].getwalletpakinfo()["derivation_path"], "/0/2")
316316

317317
# pak1 generates a block, creating block commitment
318318
self.nodes[i_pak1].generate(1)
319319
self.sync_all()
320320

321321
# pak1 will now create a pegout.
322322
pak1_pegout_txid = self.nodes[i_pak1].sendtomainchain(1)["txid"]
323-
assert_equal(self.nodes[i_pak1].getpakinfo()["derivation_path"], "/0/1")
323+
assert_equal(self.nodes[i_pak1].getwalletpakinfo()["derivation_path"], "/0/1")
324324

325325
# Wait for two nodes to get transaction in mempool only
326326
time_to_wait = 15

0 commit comments

Comments
 (0)