diff --git a/domain/consensus/utils/pow/pow.go b/domain/consensus/utils/pow/pow.go index ca59c1aff..d77633616 100644 --- a/domain/consensus/utils/pow/pow.go +++ b/domain/consensus/utils/pow/pow.go @@ -52,7 +52,10 @@ func CalculateProofOfWorkValue(header externalapi.MutableBlockHeader) *big.Int { if err != nil { panic(errors.Wrap(err, "this should never happen. Hash digest should never return an error")) } - return toBig(writer.Finalize()) + powHash := writer.Finalize() + matrix := generateMatrix(powHash) + heavyHash := matrix.HeavyHash(powHash) + return toBig(heavyHash) } // ToBig converts a externalapi.DomainHash into a big.Int treated as a little endian string.