Skip to content

Commit b9118f5

Browse files
committed
test: improve withdrawal compatibility in functional test feature_asset_locks.py
It imports private keys to node wallet and easier to see withdrawals in Dash Core
1 parent 7d7bef5 commit b9118f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/functional/feature_asset_locks.py

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
get_bip9_details,
4545
hex_str_to_bytes,
4646
)
47+
from test_framework.wallet_util import bytes_to_wif
4748

4849
llmq_type_test = 106 # LLMQType::LLMQ_TEST_PLATFORM
4950
tiny_amount = int(Decimal("0.0007") * COIN)
@@ -260,6 +261,8 @@ def run_test(self):
260261

261262
key = ECKey()
262263
key.generate()
264+
privkey = bytes_to_wif(key.get_bytes())
265+
node_wallet.importprivkey(privkey)
263266
pubkey = key.get_pubkey().get_bytes()
264267

265268
self.test_asset_locks(node_wallet, node, pubkey)

0 commit comments

Comments
 (0)