aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2017-09-12 12:44:23 +0200
committerMarcoFalke <falke.marco@gmail.com>2017-09-12 12:40:41 +0200
commitfadf31ef02b35f438ce2cf7048830f6974cdb515 (patch)
treee518bc88667f76e11f12e829525f8558b5d82d71 /test
parentb9bceaf1c081a84d9fcc680372614e797b168a9e (diff)
wallet: Display non-HD error on first run
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/wallet-hd.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/wallet-hd.py b/test/functional/wallet-hd.py
index 3af04c2279..5ef3bf5bff 100755
--- a/test/functional/wallet-hd.py
+++ b/test/functional/wallet-hd.py
@@ -20,6 +20,12 @@ class WalletHDTest(BitcoinTestFramework):
def run_test (self):
tmpdir = self.options.tmpdir
+ # Make sure can't switch off usehd after wallet creation
+ self.stop_node(1)
+ self.assert_start_raises_init_error(1, ['-usehd=0'], 'already existing HD wallet')
+ self.start_node(1)
+ connect_nodes_bi(self.nodes, 0, 1)
+
# Make sure we use hd, keep masterkeyid
masterkeyid = self.nodes[1].getwalletinfo()['hdmasterkeyid']
assert_equal(len(masterkeyid), 40)