MCPcopy Create free account
hub / github.com/citp/BlockSci / BlockInfoBase

Method BlockInfoBase

tools/parser/chain_index.cpp:28–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26#ifdef BLOCKSCI_FILE_PARSER
27
28BlockInfoBase::BlockInfoBase(const blocksci::uint256 &hash_, const CBlockHeader &h, uint32_t size_, unsigned int numTxes, uint32_t inputCount_, uint32_t outputCount_) : hash(hash_), header(h), height(-1), size(size_), nTx(numTxes), inputCount(inputCount_), outputCount(outputCount_) {}
29
30BlockInfo<FileTag>::BlockInfo(const CBlockHeader &h, uint32_t size_, unsigned int numTxes, uint32_t inputCount_, uint32_t outputCount_, const ChainDiskConfiguration &config, int fileNum, unsigned int dataPos) : BlockInfoBase(config.workHashFunction(reinterpret_cast<const char *>(&h), sizeof(CBlockHeader)), h, size_, numTxes, inputCount_, outputCount_), nFile(fileNum), nDataPos(dataPos) {}
31

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected