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.
|
VALID, //!> Fully validated, valid.
|
||||||
INVALID, //!> Invalid.
|
INVALID, //!> Invalid.
|
||||||
};
|
};
|
||||||
ResultType m_result_type;
|
const ResultType m_result_type;
|
||||||
TxValidationState m_state;
|
const TxValidationState m_state;
|
||||||
|
|
||||||
// The following fields are only present when m_result_type = ResultType::VALID
|
// The following fields are only present when m_result_type = ResultType::VALID
|
||||||
/** Raw base fees. */
|
/** Raw base fees in satoshis. */
|
||||||
std::optional<CAmount> m_base_fees;
|
const std::optional<CAmount> m_base_fees;
|
||||||
|
|
||||||
/** Constructor for failure case */
|
/** Constructor for failure case */
|
||||||
explicit MempoolAcceptResult(TxValidationState state)
|
explicit MempoolAcceptResult(TxValidationState state)
|
||||||
@ -249,7 +249,7 @@ struct MempoolAcceptResult {
|
|||||||
|
|
||||||
/** Constructor for success case */
|
/** Constructor for success case */
|
||||||
explicit MempoolAcceptResult(CAmount fees)
|
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