Skip to content

Commit d3dfc6d

Browse files
committed
Merge pull request #7320
fa1cb1a [qa] Test walletpassphrase timeout (MarcoFalke)
2 parents b8f485c + fa1cb1a commit d3dfc6d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

qa/rpc-tests/keypool.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,11 @@ def run_test(self):
7070
assert(e.error['code']==-12)
7171

7272
# refill keypool with three new addresses
73-
nodes[0].walletpassphrase('test', 12000)
73+
nodes[0].walletpassphrase('test', 1)
7474
nodes[0].keypoolrefill(3)
75-
nodes[0].walletlock()
75+
# test walletpassphrase timeout
76+
time.sleep(1.1)
77+
assert_equal(nodes[0].getwalletinfo()["unlocked_until"], 0)
7678

7779
# drain them by mining
7880
nodes[0].generate(1)

0 commit comments

Comments
 (0)