MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / GetBlockHash

Method GetBlockHash

src/chain.h:443–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

441 }
442
443 uint256 GetBlockHash() const
444 {
445 CBlockHeader block;
446 block.nVersion = nVersion;
447 block.hashPrevBlock = hashPrev;
448 block.hashMerkleRoot = hashMerkleRoot;
449 block.nHeight = nHeight;
450 memcpy(block.nReserved, nReserved, sizeof(block.nReserved));
451 block.nTime = nTime;
452 block.nBits = nBits;
453 block.nNonce = nNonce;
454 block.nSolution = nSolution;
455 return block.GetHash();
456 }
457
458
459 std::string ToString() const

Callers

nothing calls this directly

Calls 2

memcpyFunction · 0.85
GetHashMethod · 0.45

Tested by

no test coverage detected