From 363df758a9e0b5e0aa5ab401de2de820fc362c19 Mon Sep 17 00:00:00 2001 From: glozow Date: Thu, 11 Feb 2021 06:23:04 -0800 Subject: doc/style followups in MempoolAcceptResult --- src/validation.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/validation.h b/src/validation.h index de121ab46a..29fb22ff4b 100644 --- a/src/validation.h +++ b/src/validation.h @@ -195,14 +195,14 @@ struct MempoolAcceptResult { VALID, //!> Fully validated, valid. INVALID, //!> Invalid. }; - ResultType m_result_type; - TxValidationState m_state; + const ResultType m_result_type; + const TxValidationState m_state; // The following fields are only present when m_result_type = ResultType::VALID /** Mempool transactions replaced by the tx per BIP 125 rules. */ - std::optional> m_replaced_transactions; - /** Raw base fees. */ - std::optional m_base_fees; + const std::optional> m_replaced_transactions; + /** Raw base fees in satoshis. */ + const std::optional m_base_fees; /** Constructor for failure case */ explicit MempoolAcceptResult(TxValidationState state) @@ -212,7 +212,7 @@ struct MempoolAcceptResult { /** Constructor for success case */ explicit MempoolAcceptResult(std::list&& replaced_txns, CAmount fees) - : m_result_type(ResultType::VALID), m_state(TxValidationState{}), + : m_result_type(ResultType::VALID), m_replaced_transactions(std::move(replaced_txns)), m_base_fees(fees) {} }; -- cgit v1.2.3