HomePhabricator

Avoid UBSan warning in ProcessMessage(...) and disallow negative mocktime

Description

Avoid UBSan warning in ProcessMessage(...) and disallow negative mocktime

Summary:
This is a backport of core#21043

Most of the work was already done in D6022. The functional test already exists in abc_rpc_mocktime.py, only the error messages need to be updated.

Test Plan:

ninja all check-all
src/bitcoin-cli help setmocktime

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
practicalswift <practicalswift@users.noreply.github.com>Authored on Jan 31 2021, 21:03
PiRKCommitted on Jul 22 2022, 09:59
PiRKPushed on Jul 22 2022, 09:59
Reviewer
Restricted Project
Differential Revision
D11788: Avoid UBSan warning in ProcessMessage(...) and disallow negative mocktime
Parents
rABC7177049f17c6: Simplify GetTime
Branches
Unknown
Tags
Unknown