Page MenuHomePhabricator

test: check rejected future block later accepted
ClosedPublic

Authored by Fabien on Nov 21 2022, 10:54.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABC9a316d7679f4: test: check rejected future block later accepted
Summary
(Luke) was unsure if the code sufficiently avoided caching a
time-too-new rejection, so wrote this test to check it.  It looks like despite only exempting BLOCK_MUTATED, it is still okay because header failures never cache block invalidity.  This test will help ensure that if this ever changes, BLOCK_TIME_FUTURE gets excluded at the same time.

Backport of core#22120.

Test Plan
./test/functional/test_runner.py p2p_invalid_block

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable