diff options
author | Andrew Chow <achow101-github@achow101.com> | 2018-01-06 02:07:38 -0500 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2018-01-11 23:57:38 -0500 |
commit | 0b63e3c7b20ea54930de3ec3955406e4d4737e3c (patch) | |
tree | 9e8230a22f7c659868d07cc7346c9f0ff6724bf3 /test | |
parent | 56910285fa4a7a0f3b931e7613b9691cee9c13ff (diff) | |
download | bitcoin-0b63e3c7b20ea54930de3ec3955406e4d4737e3c.tar.xz |
Clamp walletpassphrase timeout to 2^(30) seconds and check its bounds
Clamps the timeout of walletpassphrase to 2^(30) seconds, which is
~34 years. Any number greater than that will be forced to be
2^(30). This avoids the sign flipping problem with large values which
can result in a negative time used.
Also perform bounds checks to ensure that the timeout is positive
to avoid immediate relocking of the wallet.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions