Page MenuHomePhabricator

test: check BlockStatus when InvalidateBlock is used
ClosedPublic

Authored by PiRK on Tue, Oct 14, 13:36.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC49edbad09b31: test: check BlockStatus when InvalidateBlock is used
Summary

when a block is invalidated using InvalidateBlock, check that:

  1. it's status is BLOCK_FAILED_VALID
  2. it's children's status is BLOCK_FAILED_CHILD and not BLOCK_FAILED_VALID
  3. it's ancestors are valid

This is a partial backport of core#31835
https://github.com/bitcoin/bitcoin/pull/31835/commits/9e29653b424b324c753526fbbf9fdbc92e88244f

Note that this test is for a bug that was fixed independently in Bitcoin ABC in D5041

Test Plan

ninja all check-all

Diff Detail

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