aboutsummaryrefslogtreecommitdiff
path: root/src/httpserver.cpp
diff options
context:
space:
mode:
authorAndrew Chow <[email protected]>2018-01-06 02:07:38 -0500
committerAndrew Chow <[email protected]>2018-01-11 23:57:38 -0500
commit0b63e3c7b20ea54930de3ec3955406e4d4737e3c (patch)
tree9e8230a22f7c659868d07cc7346c9f0ff6724bf3 /src/httpserver.cpp
parentMerge #12093: Fix incorrect Markdown link (diff)
downloaddiscoin-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