@@ -195,14 +195,14 @@ struct MempoolAcceptResult {
195
195
VALID, // !> Fully validated, valid.
196
196
INVALID, // !> Invalid.
197
197
};
198
- ResultType m_result_type;
199
- TxValidationState m_state;
198
+ const ResultType m_result_type;
199
+ const TxValidationState m_state;
200
200
201
201
// The following fields are only present when m_result_type = ResultType::VALID
202
202
/* * 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;
206
206
207
207
/* * Constructor for failure case */
208
208
explicit MempoolAcceptResult (TxValidationState state)
@@ -212,7 +212,7 @@ struct MempoolAcceptResult {
212
212
213
213
/* * Constructor for success case */
214
214
explicit MempoolAcceptResult (std::list<CTransactionRef>&& replaced_txns, CAmount fees)
215
- : m_result_type(ResultType::VALID), m_state(TxValidationState{}),
215
+ : m_result_type(ResultType::VALID),
216
216
m_replaced_transactions(std::move(replaced_txns)), m_base_fees(fees) {}
217
217
};
218
218
0 commit comments