Skip to content

Commit

Permalink
[qa] Test walletpassphrase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoFalke committed Jan 9, 2016
1 parent 605c178 commit fa1cb1a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qa/rpc-tests/keypool.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ def run_test(self):
assert(e.error['code']==-12)

# refill keypool with three new addresses
nodes[0].walletpassphrase('test', 12000)
nodes[0].walletpassphrase('test', 1)
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
nodes[0].generate(1)
Expand Down

0 comments on commit fa1cb1a

Please sign in to comment.