diff --git a/ethash.go b/ethash.go index 21c10c87..4924a4d2 100644 --- a/ethash.go +++ b/ethash.go @@ -433,7 +433,7 @@ func GetSeedHash(blockNum uint64) ([]byte, error) { func makeSeedHash(epoch uint64) (sh common.Hash) { for ; epoch > 0; epoch-- { - sh = crypto.Sha3Hash(sh[:]) + sh = crypto.Keccak256Hash(sh[:]) } return sh } diff --git a/ethash_test.go b/ethash_test.go index e0ca0bd8..f7929ed1 100644 --- a/ethash_test.go +++ b/ethash_test.go @@ -79,10 +79,10 @@ var validBlocks = []*testBlock{ var invalidZeroDiffBlock = testBlock{ number: 61440000, - hashNoNonce: crypto.Sha3Hash([]byte("foo")), + hashNoNonce: crypto.Keccak256Hash([]byte("foo")), difficulty: big.NewInt(0), nonce: 0xcafebabec00000fe, - mixDigest: crypto.Sha3Hash([]byte("bar")), + mixDigest: crypto.Keccak256Hash([]byte("bar")), } func TestEthashVerifyValid(t *testing.T) {