@@ -195,14 +195,14 @@ struct MempoolAcceptResult {
195195 VALID, // !> Fully validated, valid.
196196 INVALID, // !> Invalid.
197197 };
198- ResultType m_result_type;
199- TxValidationState m_state;
198+ const ResultType m_result_type;
199+ const TxValidationState m_state;
200200
201201 // The following fields are only present when m_result_type = ResultType::VALID
202202 /* * Mempool transactions replaced by the tx per BIP 125 rules. */
203- std::optional<std::list<CTransactionRef>> m_replaced_transactions;
204- /* * Raw base fees. */
205- std::optional<CAmount> m_base_fees;
203+ const std::optional<std::list<CTransactionRef>> m_replaced_transactions;
204+ /* * Raw base fees in satoshis . */
205+ const std::optional<CAmount> m_base_fees;
206206
207207 /* * Constructor for failure case */
208208 explicit MempoolAcceptResult (TxValidationState state)
@@ -212,7 +212,7 @@ struct MempoolAcceptResult {
212212
213213 /* * Constructor for success case */
214214 explicit MempoolAcceptResult (std::list<CTransactionRef>&& replaced_txns, CAmount fees)
215- : m_result_type(ResultType::VALID), m_state(TxValidationState{}),
215+ : m_result_type(ResultType::VALID),
216216 m_replaced_transactions(std::move(replaced_txns)), m_base_fees(fees) {}
217217};
218218
0 commit comments