Browse Source

Merge #10361: qa: disablewallet: Check that wallet is really disabled

fa7396d qa: disablewallet: Check that wallet is really disabled (MarcoFalke)

Tree-SHA512: 8c999ae0763fad389ba06f23cca3f589edaaf6dabd29ea8493413eee574ef2c1d49a69cb1158d8b28254cf922277a86b45747e50f44ebc9b0545297c3987289d
pull/1/head
MarcoFalke 5 years ago
parent
commit
f6241b3e42
No known key found for this signature in database
GPG Key ID: D2EA4850E7528B25
  1. 2
      test/functional/disablewallet.py

2
test/functional/disablewallet.py

@ -21,6 +21,8 @@ class DisableWalletTest (BitcoinTestFramework): @@ -21,6 +21,8 @@ class DisableWalletTest (BitcoinTestFramework):
self.extra_args = [["-disablewallet"]]
def run_test (self):
# Make sure wallet is really disabled
assert_raises_jsonrpc(-32601, 'Method not found', self.nodes[0].getwalletinfo)
x = self.nodes[0].validateaddress('3J98t1WpEZ73CNmQviecrnyiWrnqRhWNLy')
assert(x['isvalid'] == False)
x = self.nodes[0].validateaddress('mneYUmWYsuk7kySiURxCi3AGxrAqZxLgPZ')

Loading…
Cancel
Save