Changeset View
Changeset View
Standalone View
Standalone View
src/blockencodings.h
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | |||||
private: | private: | ||||
mutable uint64_t shorttxidk0, shorttxidk1; | mutable uint64_t shorttxidk0, shorttxidk1; | ||||
uint64_t nonce; | uint64_t nonce; | ||||
void FillShortTxIDSelector() const; | void FillShortTxIDSelector() const; | ||||
friend class PartiallyDownloadedBlock; | friend class PartiallyDownloadedBlock; | ||||
static const int SHORTTXIDS_LENGTH = 6; | |||||
protected: | protected: | ||||
std::vector<uint64_t> shorttxids; | std::vector<uint64_t> shorttxids; | ||||
std::vector<PrefilledTransaction> prefilledtxn; | std::vector<PrefilledTransaction> prefilledtxn; | ||||
public: | public: | ||||
static constexpr int SHORTTXIDS_LENGTH = 6; | |||||
CBlockHeader header; | CBlockHeader header; | ||||
// Dummy for deserialization | // Dummy for deserialization | ||||
CBlockHeaderAndShortTxIDs() {} | CBlockHeaderAndShortTxIDs() {} | ||||
explicit CBlockHeaderAndShortTxIDs(const CBlock &block); | explicit CBlockHeaderAndShortTxIDs(const CBlock &block); | ||||
uint64_t GetShortID(const TxHash &txhash) const; | uint64_t GetShortID(const TxHash &txhash) const; | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |