diff options
author | glozow <gloriajzhao@gmail.com> | 2024-01-23 10:30:39 +0000 |
---|---|---|
committer | glozow <gloriajzhao@gmail.com> | 2024-02-21 16:40:42 +0000 |
commit | b5d15f764fed0b30c9113429163700dea907c2b1 (patch) | |
tree | 627906abe1ffd9e47e01a6aad08986774948d519 /src/validation.cpp | |
parent | baed5edeb611d949982c849461949c645f8998a7 (diff) | |
download | bitcoin-b5d15f764fed0b30c9113429163700dea907c2b1.tar.xz |
[refactor] return pair from SingleV3Checks
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 0552bde665..2c36f0d00d 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -954,8 +954,8 @@ bool MemPoolAccept::PreChecks(ATMPArgs& args, Workspace& ws) } ws.m_ancestors = *ancestors; - if (const auto err_string{SingleV3Checks(ws.m_ptx, ws.m_ancestors, ws.m_conflicts, ws.m_vsize)}) { - return state.Invalid(TxValidationResult::TX_MEMPOOL_POLICY, "v3-rule-violation", *err_string); + if (const auto err{SingleV3Checks(ws.m_ptx, ws.m_ancestors, ws.m_conflicts, ws.m_vsize)}) { + return state.Invalid(TxValidationResult::TX_MEMPOOL_POLICY, "v3-rule-violation", err->first); } // A transaction that spends outputs that would be replaced by it is invalid. Now |