HomePhabricator

test: check rejected future block later accepted

Description

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

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
Luke Dashjr <luke-jr+git@utopios.org>Authored on Jan 5 2020, 02:13
FabienCommitted on Nov 21 2022, 17:27
FabienPushed on Nov 21 2022, 17:27
Reviewer
Restricted Project
Differential Revision
D12548: test: check rejected future block later accepted
Parents
rABCe8118bec1965: [Cashtab] Improve Sign and Verify collapse labels
Branches
Unknown
Tags
Unknown