diff options
| author | Andrew Chow <[email protected]> | 2018-01-06 02:07:38 -0500 |
|---|---|---|
| committer | Andrew Chow <[email protected]> | 2018-01-11 23:57:38 -0500 |
| commit | 0b63e3c7b20ea54930de3ec3955406e4d4737e3c (patch) | |
| tree | 9e8230a22f7c659868d07cc7346c9f0ff6724bf3 /src/httpserver.cpp | |
| parent | Merge #12093: Fix incorrect Markdown link (diff) | |
| download | discoin-0b63e3c7b20ea54930de3ec3955406e4d4737e3c.tar.xz discoin-0b63e3c7b20ea54930de3ec3955406e4d4737e3c.zip | |
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 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions