MCPcopy Create free account
hub / github.com/CPChain/chain / HashNoNonce

Method HashNoNonce

types/block.go:195–211  ·  view source on GitHub ↗

HashNoNonce returns the hash which is used as input for the proof-of-work search.

()

Source from the content-addressed store, hash-verified

193
194// HashNoNonce returns the hash which is used as input for the proof-of-work search.
195func (h *Header) HashNoNonce() common.Hash {
196 return rlpHash([]interface{}{
197 h.ParentHash,
198 h.Coinbase,
199 h.StateRoot,
200 h.TxsRoot,
201 h.ReceiptsRoot,
202 h.LogsBloom,
203 h.Number,
204 h.GasLimit,
205 h.GasUsed,
206 h.Time,
207 h.Dpor.Proposers,
208 h.Dpor.Validators,
209 h.Extra,
210 })
211}
212
213// Size returns the approximate memory used by all internal contents. It is used
214// to approximate and limit the memory consumption of various caches.

Callers

nothing calls this directly

Calls 1

rlpHashFunction · 0.70

Tested by

no test coverage detected