aboutsummaryrefslogtreecommitdiff
path: root/src/blockencodings.h
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2016-12-04 20:44:37 -0800
committerMatt Corallo <git@bluematt.me>2017-01-10 14:48:42 -0500
commit93380c5247526e2248248a7d539233ec48d11bdd (patch)
tree6e174a66769400485cebf2b2b8dcee1dd1202e3f /src/blockencodings.h
parent1531652e02d856c1b8c3ba6f6e51e1983ac0540c (diff)
Use replaced transactions in compact block reconstruction
Diffstat (limited to 'src/blockencodings.h')
-rw-r--r--src/blockencodings.h3
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);
};