Merge #10464: Introduce static DoWarning (simplify UpdateTip)
Summary:
f28514576 Introduce static DoWarning (simplify UpdateTip) (Jorge Timón)
Tree-SHA512: 58b39f00bc921d47d199ef1cc15e9e36f918ec86e9182de46dc2f24fa9474853a92b18d330a274a3ea7c9b001681fdfa3d86aa2bbebb5c92ac8c5a6f7690dfc1
Backport of Core PR10464
https://github.com/bitcoin/bitcoin/pull/10464/
Test Plan:
make check test_runner.py
Reviewers: jasonbcox, deadalnix, Fabien, markblundeberg, O1 Bitcoin ABC, #bitcoin_abc
Reviewed By: jasonbcox, markblundeberg, O1 Bitcoin ABC, #bitcoin_abc
Differential Revision: https://reviews.bitcoinabc.org/D3230