Changeset View
Changeset View
Standalone View
Standalone View
src/merkleblock.h
Show First 20 Lines • Show All 156 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* Create from a CBlock, filtering transactions according to filter. Note | * Create from a CBlock, filtering transactions according to 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); | ||||
// Create from a CBlock, matching the txids in the set. | // Create from a CBlock, matching the txids in the set. | ||||
CMerkleBlock(const CBlock &block, const std::set<uint256> &txids); | CMerkleBlock(const CBlock &block, const std::set<TxId> &txids); | ||||
CMerkleBlock() {} | CMerkleBlock() {} | ||||
ADD_SERIALIZE_METHODS; | ADD_SERIALIZE_METHODS; | ||||
template <typename Stream, typename Operation> | template <typename Stream, typename Operation> | ||||
inline void SerializationOp(Stream &s, Operation ser_action) { | inline void SerializationOp(Stream &s, Operation ser_action) { | ||||
READWRITE(header); | READWRITE(header); | ||||
READWRITE(txn); | READWRITE(txn); | ||||
} | } | ||||
}; | }; | ||||
#endif // BITCOIN_MERKLEBLOCK_H | #endif // BITCOIN_MERKLEBLOCK_H |