(miner common.Address, mixedHash common.Hash, nonce uint64)
| 33 | } |
| 34 | |
| 35 | func initHash(miner common.Address, mixedHash common.Hash, nonce uint64) common.Hash { |
| 36 | return crypto.Keccak256Hash( |
| 37 | common.BytesToHash(miner.Bytes()).Bytes(), |
| 38 | mixedHash.Bytes(), |
| 39 | common.BigToHash(new(big.Int).SetUint64(nonce)).Bytes(), |
| 40 | ) |
| 41 | } |
| 42 | |
| 43 | func expectedDiff(interval uint64, difficulty, cutoff, diffAdjDivisor, minDiff *big.Int) *big.Int { |
| 44 | diff := new(big.Int).Set(difficulty) |