import (
"math/big"
- "github.com/vapor/mining/tensority"
"github.com/vapor/protocol/bc"
"github.com/vapor/protocol/bc/types"
)
// CheckProofOfWork checks whether the hash is valid for a given difficulty.
func CheckProofOfWork(hash, seed *bc.Hash, bits uint64) bool {
- compareHash := tensority.AIHash.Hash(hash, seed)
- return HashToBig(compareHash).Cmp(CompactToBig(bits)) <= 0
+ return true
}
// CalcNextRequiredDifficulty return the difficulty using compact representation