HomePhabricator

Restrict setmocktime to non-negative integers

Description

Restrict setmocktime to non-negative integers

Summary:
The assumption that now > 0 is applied throughout util/time.cpp,
so there's no reason to expect setting mock time to a negative int to be valid.

Test Plan: ninja check check-functional

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D6022

Details

Provenance
jasonbcoxAuthored on May 10 2020, 19:02
abc-botPushed on May 11 2020, 17:05
Reviewer
Restricted Project
Differential Revision
D6022: Restrict setmocktime to non-negative integers
Parents
rSTAGINGd59cda9c1b4d: [backport#14690] Throw error if CPubKey is invalid during PSBT keypath…
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/19911, tag: phabricator/base/19905