Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Differential
D2633
Diff 7835
test/functional/wallet_encryption.py
Changeset View
Since we are using mocktime=1 (!=0 to avoid an ambiguity with a locked wallet i.e. unlocked_until=0) , the returned value will be 1+84600 _unless_ 84600s have passed, in which case it'll return 0. The timer in bitcoind is a simple timeout, so mocktime doesn't change its behavior.
This is the reason I chose not to test unlocked_until in line 46, as a 2 s delay would still break the test even though we have mocktime now.