Changeset View
Changeset View
Standalone View
Standalone View
src/merkleblock.h
Show First 20 Lines • Show All 156 Lines • ▼ Show 20 Lines | |||||
* If the CBlock has 0 txs, it will hit an assertion. | * If the CBlock has 0 txs, it will hit an assertion. | ||||
*/ | */ | ||||
class CMerkleBlock { | class CMerkleBlock { | ||||
public: | public: | ||||
/** Public only for unit testing */ | /** Public only for unit testing */ | ||||
CBlockHeader header; | CBlockHeader header; | ||||
CPartialMerkleTree txn; | CPartialMerkleTree txn; | ||||
/** Public only for unit testing and relay testing (not relayed) */ | /** | ||||
* Public only for unit testing and relay testing (not relayed). | |||||
* | |||||
* Used only when a bloom filter is specified to allow | |||||
* testing the transactions which matched the bloom filter. | |||||
*/ | |||||
std::vector<std::pair<size_t, uint256>> vMatchedTxn; | std::vector<std::pair<size_t, uint256>> vMatchedTxn; | ||||
/** | /** | ||||
* Create a Merkle proof according to a bloom filter. Note | * Create a Merkle proof according to a bloom filter. Note | ||||
* that this will call IsRelevantAndUpdate on the filter for each | * that this will call IsRelevantAndUpdate on the filter for each | ||||
* transaction, thus the filter will likely be modified. | * transaction, thus the filter will likely be modified. | ||||
*/ | */ | ||||
CMerkleBlock(const CBlock &block, CBloomFilter &filter); | CMerkleBlock(const CBlock &block, CBloomFilter &filter); | ||||
Show All 18 Lines |