diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-01-17 12:15:45 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-01-17 12:15:59 +0100 |
commit | c7978be899646194b6abc5b34a7f6a3311490033 (patch) | |
tree | 809e1c662f0f670bcbd8305a80706a2482b7a6fd /test/functional/bip65-cltv-p2p.py | |
parent | adce1de9a6ce5b41c4117b62f705bca53bf97216 (diff) | |
parent | 134cdc7cee3da7c554e40ad947a9cdcbb3069f13 (diff) |
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 'test/functional/bip65-cltv-p2p.py')
0 files changed, 0 insertions, 0 deletions