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
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
src/rpc/misc.cpp | ||
---|---|---|
336 ↗ | (On Diff #19876) | Nit: "Timestamp must be a positive integer" tells what it should be rather that what is should not be. |