refactor: Use typesafe Wtxid in compact block encoding message, instead of ambiguous uint256.

Wtxid/Txid types introduced in #28107
This commit is contained in:
AngusP
2024-03-22 21:53:41 +00:00
parent d1e9a02126
commit c3c18433ae
5 changed files with 12 additions and 12 deletions

View File

@@ -1006,7 +1006,7 @@ private:
/** Orphan/conflicted/etc transactions that are kept for compact block reconstruction.
* The last -blockreconstructionextratxn/DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN of
* these are kept in a ring buffer */
std::vector<std::pair<uint256, CTransactionRef>> vExtraTxnForCompact GUARDED_BY(g_msgproc_mutex);
std::vector<std::pair<Wtxid, CTransactionRef>> vExtraTxnForCompact GUARDED_BY(g_msgproc_mutex);
/** Offset into vExtraTxnForCompact to insert the next tx */
size_t vExtraTxnForCompactIt GUARDED_BY(g_msgproc_mutex) = 0;