OSDN Git Service

Del cpuminer
[bytom/vapor.git] / consensus / difficulty / difficulty.go
index 216cd3a..d1d749a 100644 (file)
@@ -3,7 +3,6 @@ package difficulty
 import (
        "math/big"
 
-       "github.com/vapor/mining/tensority"
        "github.com/vapor/protocol/bc"
        "github.com/vapor/protocol/bc/types"
 )
@@ -117,8 +116,7 @@ func BigToCompact(n *big.Int) uint64 {
 
 // 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