diff options
| author | Wladimir J. van der Laan <[email protected]> | 2018-01-17 12:15:45 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2018-01-17 12:15:59 +0100 |
| commit | c7978be899646194b6abc5b34a7f6a3311490033 (patch) | |
| tree | 809e1c662f0f670bcbd8305a80706a2482b7a6fd /src/httpserver.cpp | |
| parent | Merge #12198: rpc: Add deprecation error for `getinfo` (diff) | |
| parent | Test walletpassphrase timeout bounds and clamping (diff) | |
| download | discoin-c7978be899646194b6abc5b34a7f6a3311490033.tar.xz discoin-c7978be899646194b6abc5b34a7f6a3311490033.zip | |
Merge #12101: Clamp walletpassphrase timeout to 2^30 seconds and check its bounds
134cdc7 Test walletpassphrase timeout bounds and clamping (Andrew Chow)
0b63e3c Clamp walletpassphrase timeout to 2^(30) seconds and check its bounds (Andrew Chow)
Pull request description:
Fixes #12100
Makes the timeout be clamped to 2^30 seconds to avoid the issue with sign flipping with large timeout values and thus relocking the wallet instantly. Unlocking for at most ~34 years should be sufficient.
Also checks that the timeout is not negative to avoid instant relocks.
Tree-SHA512: 426922f08c54e323d259e25dcdbebc2cd560708a65111ce6051493a7e7c61e79d9da1ea4026cc0d68807d728f5d7c0d7c58168c6ef4167b94cf6c2877af88794
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions