ubqhash/algorithm: if epoch >= uip1Epoch

This commit is contained in:
Luke Williams 2019-03-01 19:22:52 +01:00
parent f2953a2eae
commit 50cf965107

View file

@ -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)
} }