[qa] Test walletpassphrase timeout
Github-Pull: #7320 Rebased-From: fa1cb1ae15e74e6149ff7fd8aae6cba216914e4c
This commit is contained in:
parent
6aae129a60
commit
331655253d
@ -70,9 +70,11 @@ class KeyPoolTest(BitcoinTestFramework):
|
|||||||
assert(e.error['code']==-12)
|
assert(e.error['code']==-12)
|
||||||
|
|
||||||
# refill keypool with three new addresses
|
# refill keypool with three new addresses
|
||||||
nodes[0].walletpassphrase('test', 12000)
|
nodes[0].walletpassphrase('test', 1)
|
||||||
nodes[0].keypoolrefill(3)
|
nodes[0].keypoolrefill(3)
|
||||||
nodes[0].walletlock()
|
# test walletpassphrase timeout
|
||||||
|
time.sleep(1.1)
|
||||||
|
assert_equal(nodes[0].getwalletinfo()["unlocked_until"], 0)
|
||||||
|
|
||||||
# drain them by mining
|
# drain them by mining
|
||||||
nodes[0].generate(1)
|
nodes[0].generate(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user