mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
merge bitcoin#21783: Make MempoolAcceptResult members const
This commit is contained in:
parent
6238ed2c6e
commit
0d76475dab
@ -234,12 +234,12 @@ 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
|
||||
/** Raw base fees. */
|
||||
std::optional<CAmount> m_base_fees;
|
||||
/** Raw base fees in satoshis. */
|
||||
const std::optional<CAmount> m_base_fees;
|
||||
|
||||
/** Constructor for failure case */
|
||||
explicit MempoolAcceptResult(TxValidationState state)
|
||||
@ -249,7 +249,7 @@ struct MempoolAcceptResult {
|
||||
|
||||
/** Constructor for success case */
|
||||
explicit MempoolAcceptResult(CAmount fees)
|
||||
: m_result_type(ResultType::VALID), m_state(TxValidationState{}), m_base_fees(fees) {}
|
||||
: m_result_type(ResultType::VALID), m_base_fees(fees) {}
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user