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

Method GetBlockHeader

src/persistence/block.h:156–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154 }
155
156 void GetBlockHeader(CBlockHeader &header) {
157 header.SetVersion(nVersion);
158 header.SetPrevBlockHash(prevBlockHash);
159 header.SetMerkleRootHash(merkleRootHash);
160 header.SetTime(nTime);
161 header.SetNonce(nNonce);
162 header.SetHeight(height);
163 header.SetFuel(nFuelFee);
164 header.SetFuelRate(nFuelRate);
165 header.SetSignature(vSignature);
166 }
167
168 uint256 BuildMerkleTree() const;
169

Callers 2

CMerkleBlockMethod · 0.45
GetBlockHeaderFunction · 0.45

Calls 9

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

Tested by

no test coverage detected