diff options
author | MarcoFalke <falke.marco@gmail.com> | 2017-09-12 12:44:23 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2017-09-12 12:40:41 +0200 |
commit | fadf31ef02b35f438ce2cf7048830f6974cdb515 (patch) | |
tree | e518bc88667f76e11f12e829525f8558b5d82d71 /test | |
parent | b9bceaf1c081a84d9fcc680372614e797b168a9e (diff) |
wallet: Display non-HD error on first run
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/wallet-hd.py | 6 |
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) |