Skip to content

Commit

Permalink
test: improve withdrawal compatibility in functional test feature_ass…
Browse files Browse the repository at this point in the history
…et_locks.py

It imports private keys to node wallet and easier to see withdrawals in Dash Core
  • Loading branch information
knst committed Jul 19, 2024
1 parent 5e193a6 commit a466f21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/functional/feature_asset_locks.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
get_bip9_details,
hex_str_to_bytes,
)
from test_framework.wallet_util import bytes_to_wif

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

key = ECKey()
key.generate()
privkey = bytes_to_wif(key.get_bytes())
node_wallet.importprivkey(privkey)
pubkey = key.get_pubkey().get_bytes()

self.test_asset_locks(node_wallet, node, pubkey)
Expand Down

0 comments on commit a466f21

Please sign in to comment.