Page MenuHomePhabricator

test: Add tests with maleated snapshot data
ClosedPublic

Authored by PiRK on Mar 22 2022, 15:28.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC83ee1128149f: test: Add tests with maleated snapshot data
Summary

https://github.com/bitcoin/bitcoin/pull/19806/commits/769a1ef9fdc9c372f5bbe91d1961cabd60bc1895

test: Add tests with maleated snapshot data


https://github.com/bitcoin/bitcoin/pull/21681/files

validation: fix ActivateSnapshot to use hardcoded nChainTx

validation: remove nchaintx from assumeutxo metadata

Only test related changes for these commits are in this revision


https://github.com/bitcoin/bitcoin/pull/21582/commits/fa8fffebe8ac126f31143619843dd6578a2f4e3c

refactor: Prefer clean assert over UB in coinstats


https://github.com/bitcoin/bitcoin/pull/21582/commits/fa9b74f5ea89624e052934c48391b5076a87ffef

Fix assumeutxo crash due to missing base_blockhash

Only test related changes from this commit are in this revision.


https://github.com/bitcoin/bitcoin/pull/21584/commits/fae33f98e6a8d5934edbdce2eb8688112eac41a8

Fix assumeutxo crash due to invalid base_blockhash

Only test related changes from this commit are in this revision.


This is a backport of core#19806 [7/8] and test related changes from core#21681, core#21582 and core#21584

Depends on D11240

Test Plan

ninja check

With UBSAN:

ninja all check-all

Diff Detail

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

Event Timeline

PiRK requested review of this revision.Mar 22 2022, 15:28
PiRK edited the summary of this revision. (Show Details)

squash with test changes from core#21681 after squashing the code changes with D11239

This revision is now accepted and ready to land.Mar 25 2022, 15:48
PiRK edited the summary of this revision. (Show Details)

squash with new tests for bugfixes (see D11239)

PiRK planned changes to this revision.Apr 11 2022, 15:42
PiRK edited the summary of this revision. (Show Details)

add the missing test from core#21584

This revision is now accepted and ready to land.Apr 11 2022, 15:48