MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / GetBlockHeader

Method GetBlockHeader

src/persistence/block.h:400–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398 }
399
400 void GetBlockHeader(CBlockHeader &header) {
401 header.SetVersion(nVersion);
402 header.SetPrevBlockHash(hashPrev);
403 header.SetMerkleRootHash(merkleRootHash);
404 header.SetTime(nTime);
405 header.SetNonce(nNonce);
406 header.SetHeight(height);
407 header.SetSignature(vSignature);
408 }
409
410 string ToString() const {
411 return TO_KV_STRING1(nVersion) +

Callers

nothing calls this directly

Calls 7

SetPrevBlockHashMethod · 0.80
SetMerkleRootHashMethod · 0.80
SetTimeMethod · 0.80
SetNonceMethod · 0.80
SetVersionMethod · 0.45
SetHeightMethod · 0.45
SetSignatureMethod · 0.45

Tested by

no test coverage detected