mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
fix: feature_backwards compatible works now with as expected if no bdb compiled
It is follow-up fixes for bitcoin#20267
This commit is contained in:
parent
b20f812674
commit
ceefab5226
@ -115,7 +115,7 @@ class BackwardsCompatibilityTest(BitcoinTestFramework):
|
|||||||
# w2: wallet with private keys disabled, created on master: update this
|
# w2: wallet with private keys disabled, created on master: update this
|
||||||
# test when default wallets private keys disabled can no longer be
|
# test when default wallets private keys disabled can no longer be
|
||||||
# opened by older versions.
|
# opened by older versions.
|
||||||
node_master.rpc.createwallet(wallet_name="w2", disable_private_keys=True)
|
node_master.createwallet(wallet_name="w2", disable_private_keys=True)
|
||||||
wallet = node_master.get_wallet_rpc("w2")
|
wallet = node_master.get_wallet_rpc("w2")
|
||||||
info = wallet.getwalletinfo()
|
info = wallet.getwalletinfo()
|
||||||
assert info['private_keys_enabled'] == False
|
assert info['private_keys_enabled'] == False
|
||||||
@ -144,7 +144,7 @@ class BackwardsCompatibilityTest(BitcoinTestFramework):
|
|||||||
|
|
||||||
# w3: blank wallet, created on master: update this
|
# w3: blank wallet, created on master: update this
|
||||||
# test when default blank wallets can no longer be opened by older versions.
|
# test when default blank wallets can no longer be opened by older versions.
|
||||||
node_master.rpc.createwallet(wallet_name="w3", blank=True)
|
node_master.createwallet(wallet_name="w3", blank=True)
|
||||||
wallet = node_master.get_wallet_rpc("w3")
|
wallet = node_master.get_wallet_rpc("w3")
|
||||||
info = wallet.getwalletinfo()
|
info = wallet.getwalletinfo()
|
||||||
assert info['private_keys_enabled']
|
assert info['private_keys_enabled']
|
||||||
@ -300,11 +300,11 @@ class BackwardsCompatibilityTest(BitcoinTestFramework):
|
|||||||
else:
|
else:
|
||||||
# Descriptor wallets appear to be corrupted wallets to old software
|
# Descriptor wallets appear to be corrupted wallets to old software
|
||||||
assert_raises_rpc_error(-4, "Wallet requires newer version of Dash Core", node_v19.loadwallet, "w1")
|
assert_raises_rpc_error(-4, "Wallet requires newer version of Dash Core", node_v19.loadwallet, "w1")
|
||||||
node_v19.loadwallet("w2")
|
assert_raises_rpc_error(-4, "Wallet requires newer version of Dash Core", node_v19.loadwallet, "w2")
|
||||||
node_v19.loadwallet("w3")
|
assert_raises_rpc_error(-4, "Wallet requires newer version of Dash Core", node_v19.loadwallet, "w3")
|
||||||
assert_raises_rpc_error(-18, "Data is not in recognized format", node_v18.loadwallet, "w1")
|
assert_raises_rpc_error(-18, "Data is not in recognized format", node_v18.loadwallet, "w1")
|
||||||
node_v18.loadwallet("w2")
|
assert_raises_rpc_error(-18, "Data is not in recognized format", node_v18.loadwallet, "w2")
|
||||||
node_v18.loadwallet("w3")
|
assert_raises_rpc_error(-18, "Data is not in recognized format", node_v18.loadwallet, "w3")
|
||||||
|
|
||||||
# Open the wallets in v0.17
|
# Open the wallets in v0.17
|
||||||
node_v17.loadwallet("w1_v18")
|
node_v17.loadwallet("w1_v18")
|
||||||
|
Loading…
Reference in New Issue
Block a user