Changeset View
Changeset View
Standalone View
Standalone View
src/blockencodings.h
Show First 20 Lines • Show All 156 Lines • ▼ Show 20 Lines | protected: | ||||
std::vector<PrefilledTransaction> prefilledtxn; | std::vector<PrefilledTransaction> prefilledtxn; | ||||
public: | public: | ||||
CBlockHeader header; | CBlockHeader header; | ||||
// Dummy for deserialization | // Dummy for deserialization | ||||
CBlockHeaderAndShortTxIDs() {} | CBlockHeaderAndShortTxIDs() {} | ||||
CBlockHeaderAndShortTxIDs(const CBlock &block); | explicit CBlockHeaderAndShortTxIDs(const CBlock &block); | ||||
uint64_t GetShortID(const TxHash &txhash) const; | uint64_t GetShortID(const TxHash &txhash) const; | ||||
size_t BlockTxCount() const { | size_t BlockTxCount() const { | ||||
return shorttxids.size() + prefilledtxn.size(); | return shorttxids.size() + prefilledtxn.size(); | ||||
} | } | ||||
ADD_SERIALIZE_METHODS; | ADD_SERIALIZE_METHODS; | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |