aboutsummaryrefslogtreecommitdiffstats
path: root/pow/ezp/pow.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-16 18:27:38 +0800
committerobscuren <geffobscura@gmail.com>2015-03-16 18:27:38 +0800
commitb5234413611ce5984292f85a01de1f56c045b490 (patch)
treee6e0c6f7fe8358a2dc63cdea11ac66b4f59397f5 /pow/ezp/pow.go
parent0b8f66ed9ef177dc72442dd7ba337c6733e30344 (diff)
downloaddexon-b5234413611ce5984292f85a01de1f56c045b490.tar.gz
dexon-b5234413611ce5984292f85a01de1f56c045b490.tar.zst
dexon-b5234413611ce5984292f85a01de1f56c045b490.zip
Moved ethutil => common
Diffstat (limited to 'pow/ezp/pow.go')
-rw-r--r--pow/ezp/pow.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pow/ezp/pow.go b/pow/ezp/pow.go
index 3ca502d06..7eba95784 100644
--- a/pow/ezp/pow.go
+++ b/pow/ezp/pow.go
@@ -7,7 +7,7 @@ import (
"time"
"github.com/ethereum/go-ethereum/crypto/sha3"
- "github.com/ethereum/go-ethereum/ethutil"
+ "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethereum/pow"
)
@@ -91,8 +91,8 @@ func verify(hash []byte, diff *big.Int, nonce uint64) bool {
d := append(hash, n...)
sha.Write(d)
- verification := new(big.Int).Div(ethutil.BigPow(2, 256), diff)
- res := ethutil.BigD(sha.Sum(nil))
+ verification := new(big.Int).Div(common.BigPow(2, 256), diff)
+ res := common.BigD(sha.Sum(nil))
return res.Cmp(verification) <= 0
}