HomePhabricator

[validation] explicit Success/Failure ctors for MempoolAcceptResult

Description

[validation] explicit Success/Failure ctors for MempoolAcceptResult

Summary:
Makes code more clear and prevents accidentally calling the wrong ctor.

This is a backport of core#20833 [2/13]
https://github.com/bitcoin/bitcoin/pull/20833/commits/578148ded62828a9820398165c41670f4dbb523d

Depends on D12101

Commit backported out of order (standalone refactorings first, new feature last)

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
glozow <gzhao408@berkeley.edu>Authored on May 20 2021, 20:22
PiRKCommitted on Sep 30 2022, 11:21
PiRKPushed on Sep 30 2022, 11:21
Reviewer
Restricted Project
Differential Revision
D12102: [validation] explicit Success/Failure ctors for MempoolAcceptResult
Parents
rABCb7c4f4f739cf: [validation] make CheckSequenceLocks context-free
Branches
Unknown
Tags
Unknown