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

Method ComputeSignatureHash

src/persistence/block.cpp:21–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21uint256 CBlockHeader::ComputeSignatureHash() const {
22 CHashWriter ss(SER_GETHASH, CLIENT_VERSION);
23 ss << nVersion << prevBlockHash << merkleRootHash << nTime << nNonce << height << nFuelFee << nFuelRate;
24 return ss.GetHash();
25}
26
27uint256 CBlock::BuildMerkleTree() const {
28 vMerkleTree.clear();

Callers

nothing calls this directly

Calls 1

GetHashMethod · 0.45

Tested by

no test coverage detected