Browse Source
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.0.16
Andrew Chow
7 years ago
1 changed files with 13 additions and 2 deletions
Loading…
Reference in new issue