Page MenuHomePhabricator

[avalanche] Use immature UTXO to orphan the proof in known_score_tracking test
ClosedPublic

Authored by sdulfari on Jun 23 2022, 22:26.

Details

Summary

Since D11622, orphans can have valid UTXOs but not be mature enough to be valid.
The next major step is to limit the orphan pool to only immature proofs and not
accept proofs with missing UTXOs.

This patch prepares us for that change by migrating one of the instances of a
peer manager test that uses an orphan proof with a missing UTXO to use an
immature one instead. This will make review of the the future immature-only
orphan pool patch simpler since this change is self-contained.

Depends on D11622 and D11664

Test Plan
ninja check-avalanche

Diff Detail

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

Event Timeline

Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/avalanche/test/peermanager_tests.cpp
1552 ↗(On Diff #34116)

Please add a comment to explain the created utxo here is immature, and so peer1proof3 is an orphan

This revision is now accepted and ready to land.Jun 24 2022, 13:20

Rebase on latest D11622 (and fix off-by-one conf)