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.
Details
Details
- Reviewers
Fabien - Group Reviewers
Restricted Project - Commits
- rSTAGING6bd6615b8135: Restrict setmocktime to non-negative integers
rABC6bd6615b8135: Restrict setmocktime to non-negative integers
ninja check check-functional
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- neg-mocktime
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 10678 Build 19153: Default Diff Build & Tests Build 19152: arc lint + arc unit
Event Timeline
src/rpc/misc.cpp | ||
---|---|---|
336 | Nit: "Timestamp must be a positive integer" tells what it should be rather that what is should not be. |