@@ -154,7 +154,7 @@ struct MempoolAcceptResult {
154
154
const std::optional<std::vector<Wtxid>> m_wtxids_fee_calculations;
155
155
156
156
/* * 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;
158
158
159
159
static MempoolAcceptResult Failure (TxValidationState state) {
160
160
return MempoolAcceptResult (state);
@@ -179,7 +179,7 @@ struct MempoolAcceptResult {
179
179
return MempoolAcceptResult (vsize, fees);
180
180
}
181
181
182
- static MempoolAcceptResult MempoolTxDifferentWitness (const uint256 & other_wtxid) {
182
+ static MempoolAcceptResult MempoolTxDifferentWitness (const Wtxid & other_wtxid) {
183
183
return MempoolAcceptResult (other_wtxid);
184
184
}
185
185
@@ -218,7 +218,7 @@ struct MempoolAcceptResult {
218
218
: m_result_type(ResultType::MEMPOOL_ENTRY), m_vsize{vsize}, m_base_fees(fees) {}
219
219
220
220
/* * Constructor for witness-swapped case. */
221
- explicit MempoolAcceptResult (const uint256 & other_wtxid)
221
+ explicit MempoolAcceptResult (const Wtxid & other_wtxid)
222
222
: m_result_type(ResultType::DIFFERENT_WITNESS), m_other_wtxid(other_wtxid) {}
223
223
};
224
224
@@ -234,18 +234,18 @@ struct PackageMempoolAcceptResult
234
234
* present, it means validation was unfinished for that transaction. If there
235
235
* was a package-wide error (see result in m_state), m_tx_results will be empty.
236
236
*/
237
- std::map<uint256 , MempoolAcceptResult> m_tx_results;
237
+ std::map<Wtxid , MempoolAcceptResult> m_tx_results;
238
238
239
239
explicit PackageMempoolAcceptResult (PackageValidationState state,
240
- std::map<uint256 , MempoolAcceptResult>&& results)
240
+ std::map<Wtxid , MempoolAcceptResult>&& results)
241
241
: m_state{state}, m_tx_results(std::move(results)) {}
242
242
243
243
explicit PackageMempoolAcceptResult (PackageValidationState state, CFeeRate feerate,
244
- std::map<uint256 , MempoolAcceptResult>&& results)
244
+ std::map<Wtxid , MempoolAcceptResult>&& results)
245
245
: m_state{state}, m_tx_results(std::move(results)) {}
246
246
247
247
/* * 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)
249
249
: m_tx_results{ {wtxid, result} } {}
250
250
};
251
251
0 commit comments