Page MenuHomePhabricator

[policy] detect unsorted packages
ClosedPublic

Authored by PiRK on Oct 4 2022, 08:24.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC855ed5d51112: [policy] detect unsorted packages
Summary

Quit early if a package is not topologically sorted, so if we later get a missing-inputs status we know that it is caused by an orphan tx or a tx trying to spend non-existing coins.

This concludes backport of core#20833
https://github.com/bitcoin/bitcoin/pull/20833/commits/13650fe2e527bf0cf5d977bf5f3f1563b853ecdc

Depends on D12126

Test Plan

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.Oct 4 2022, 08:24
Fabien requested changes to this revision.Oct 4 2022, 16:18
Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/validation.cpp
786 ↗(On Diff #35395)

This is you use-before-init, just pass the args to emplace

This revision now requires changes to proceed.Oct 4 2022, 16:18

use correct emplace usage and revert initializing m_sig_checks_standard

This revision is now accepted and ready to land.Oct 4 2022, 18:23
This revision was automatically updated to reflect the committed changes.