diff options
author | Matt Corallo <git@bluematt.me> | 2016-12-04 20:44:37 -0800 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2017-01-10 14:48:42 -0500 |
commit | 93380c5247526e2248248a7d539233ec48d11bdd (patch) | |
tree | 6e174a66769400485cebf2b2b8dcee1dd1202e3f /src/blockencodings.h | |
parent | 1531652e02d856c1b8c3ba6f6e51e1983ac0540c (diff) |
Use replaced transactions in compact block reconstruction
Diffstat (limited to 'src/blockencodings.h')
-rw-r--r-- | src/blockencodings.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/blockencodings.h b/src/blockencodings.h index 809ccbf936..7bbd9c6610 100644 --- a/src/blockencodings.h +++ b/src/blockencodings.h @@ -200,7 +200,8 @@ public: CBlockHeader header; PartiallyDownloadedBlock(CTxMemPool* poolIn) : pool(poolIn) {} - ReadStatus InitData(const CBlockHeaderAndShortTxIDs& cmpctblock); + // extra_txn is a list of extra transactions to look at, in <witness hash, reference> form + ReadStatus InitData(const CBlockHeaderAndShortTxIDs& cmpctblock, std::vector<std::pair<uint256, CTransactionRef>>& extra_txn); bool IsTxAvailable(size_t index) const; ReadStatus FillBlock(CBlock& block, const std::vector<CTransactionRef>& vtx_missing); }; |