diff options
author | AngusP <angus@toaster.cc> | 2024-03-25 20:13:35 +0100 |
---|---|---|
committer | AngusP <angus@toaster.cc> | 2024-04-06 19:17:20 +0100 |
commit | a8203e94123b6ea6e4f4a6320e3ad20457f44a28 (patch) | |
tree | 841406ff1360618288b9b1da135acfee44787503 /src/blockencodings.h | |
parent | c3c18433ae1d5b024d4cb92c762f5ca0ec7849c8 (diff) |
refactor: Simplify `extra_txn` to be a vec of CTransactionRef instead of a vec of pair<Wtxid, CTransactionRef>
All `CTransactionRef` have `.GetWitnessHash()` that returns a cached `const Wtxid` (since fac1223a568fa1ad6dd602350598eed278d115e8),
so we don't need to pass transaction refs around with their IDs as they're easy to get from a ref.
Diffstat (limited to 'src/blockencodings.h')
-rw-r--r-- | src/blockencodings.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockencodings.h b/src/blockencodings.h index 785b4d11b4..2b1fabadd6 100644 --- a/src/blockencodings.h +++ b/src/blockencodings.h @@ -142,7 +142,7 @@ public: explicit PartiallyDownloadedBlock(CTxMemPool* poolIn) : pool(poolIn) {} // extra_txn is a list of extra transactions to look at, in <witness hash, reference> form - ReadStatus InitData(const CBlockHeaderAndShortTxIDs& cmpctblock, const std::vector<std::pair<Wtxid, CTransactionRef>>& extra_txn); + ReadStatus InitData(const CBlockHeaderAndShortTxIDs& cmpctblock, const std::vector<CTransactionRef>& extra_txn); bool IsTxAvailable(size_t index) const; ReadStatus FillBlock(CBlock& block, const std::vector<CTransactionRef>& vtx_missing); }; |