Page MenuHomePhabricator

[validation] explicit Success/Failure ctors for MempoolAcceptResult
ClosedPublic

Authored by PiRK on Sep 30 2022, 08:34.

Details

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

Diff Detail

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