mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
ubqhash/algorithm: if epoch >= uip1Epoch
This commit is contained in:
parent
f2953a2eae
commit
50cf965107
1 changed files with 1 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ func generateCache(dest []uint32, epoch uint64, seed []byte) {
|
||||||
}()
|
}()
|
||||||
// Create a hasher to reuse between invocations
|
// Create a hasher to reuse between invocations
|
||||||
keccak512 := makeHasher(sha3.NewKeccak512())
|
keccak512 := makeHasher(sha3.NewKeccak512())
|
||||||
if epoch > uip1Epoch {
|
if epoch >= uip1Epoch {
|
||||||
h, _ := blake2b.New512(nil)
|
h, _ := blake2b.New512(nil)
|
||||||
keccak512 = makeHasher(h)
|
keccak512 = makeHasher(h)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue