20 bitcoind_processes[0].wait()
22 nodes[0] =
start_node(0, self.options.tmpdir, [
'-usehd=0'])
28 raise AssertionError(
'Keypool should be exhausted after one address')
29 except JSONRPCException
as e:
30 assert(e.error[
'code']==-12)
43 assert(len(addr) == 3)
47 raise AssertionError(
'Keypool should be exhausted after three addresses')
48 except JSONRPCException
as e:
49 assert(e.error[
'code']==-12)
64 raise AssertionError(
'Keypool should be exhausted after three addesses')
65 except JSONRPCException
as e:
66 assert(e.error[
'code']==-12)
69 print(
"Initializing test directory "+self.options.tmpdir)
75 if __name__ ==
'__main__':
UniValue getrawchangeaddress(const UniValue ¶ms, bool fHelp)
UniValue walletpassphrase(const UniValue ¶ms, bool fHelp)
UniValue keypoolrefill(const UniValue ¶ms, bool fHelp)
def start_nodes(num_nodes, dirname, extra_args=None, rpchost=None, binary=None)
UniValue getnewaddress(const UniValue ¶ms, bool fHelp)
def initialize_chain_clean(test_dir, num_nodes)
UniValue getwalletinfo(const UniValue ¶ms, bool fHelp)
UniValue encryptwallet(const UniValue ¶ms, bool fHelp)
def start_node(i, dirname, extra_args=None, rpchost=None, timewait=None, binary=None)
UniValue generate(const UniValue ¶ms, bool fHelp)
def assert_equal(thing1, thing2)
UniValue walletlock(const UniValue ¶ms, bool fHelp)