HashNoNonce returns the hash which is used as input for the proof-of-work search.
()
| 193 | |
| 194 | // HashNoNonce returns the hash which is used as input for the proof-of-work search. |
| 195 | func (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. |