@@ -154,7 +154,7 @@ struct MempoolAcceptResult {
154154 const std::optional<std::vector<Wtxid>> m_wtxids_fee_calculations;
155155
156156 /* * The wtxid of the transaction in the mempool which has the same txid but different witness. */
157- const std::optional<uint256 > m_other_wtxid;
157+ const std::optional<Wtxid > m_other_wtxid;
158158
159159 static MempoolAcceptResult Failure (TxValidationState state) {
160160 return MempoolAcceptResult (state);
@@ -179,7 +179,7 @@ struct MempoolAcceptResult {
179179 return MempoolAcceptResult (vsize, fees);
180180 }
181181
182- static MempoolAcceptResult MempoolTxDifferentWitness (const uint256 & other_wtxid) {
182+ static MempoolAcceptResult MempoolTxDifferentWitness (const Wtxid & other_wtxid) {
183183 return MempoolAcceptResult (other_wtxid);
184184 }
185185
@@ -218,7 +218,7 @@ struct MempoolAcceptResult {
218218 : m_result_type(ResultType::MEMPOOL_ENTRY), m_vsize{vsize}, m_base_fees(fees) {}
219219
220220 /* * Constructor for witness-swapped case. */
221- explicit MempoolAcceptResult (const uint256 & other_wtxid)
221+ explicit MempoolAcceptResult (const Wtxid & other_wtxid)
222222 : m_result_type(ResultType::DIFFERENT_WITNESS), m_other_wtxid(other_wtxid) {}
223223};
224224
@@ -234,18 +234,18 @@ struct PackageMempoolAcceptResult
234234 * present, it means validation was unfinished for that transaction. If there
235235 * was a package-wide error (see result in m_state), m_tx_results will be empty.
236236 */
237- std::map<uint256 , MempoolAcceptResult> m_tx_results;
237+ std::map<Wtxid , MempoolAcceptResult> m_tx_results;
238238
239239 explicit PackageMempoolAcceptResult (PackageValidationState state,
240- std::map<uint256 , MempoolAcceptResult>&& results)
240+ std::map<Wtxid , MempoolAcceptResult>&& results)
241241 : m_state{state}, m_tx_results(std::move(results)) {}
242242
243243 explicit PackageMempoolAcceptResult (PackageValidationState state, CFeeRate feerate,
244- std::map<uint256 , MempoolAcceptResult>&& results)
244+ std::map<Wtxid , MempoolAcceptResult>&& results)
245245 : m_state{state}, m_tx_results(std::move(results)) {}
246246
247247 /* * Constructor to create a PackageMempoolAcceptResult from a single MempoolAcceptResult */
248- explicit PackageMempoolAcceptResult (const uint256 & wtxid, const MempoolAcceptResult& result)
248+ explicit PackageMempoolAcceptResult (const Wtxid & wtxid, const MempoolAcceptResult& result)
249249 : m_tx_results{ {wtxid, result} } {}
250250};
251251
0 commit comments