aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/dagger.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <obscuren@users.noreply.github.com>2014-07-01 22:16:05 +0800
committerJeffrey Wilcke <obscuren@users.noreply.github.com>2014-07-01 22:16:05 +0800
commit29f613ef84ed39ccc1929dd1069f3576ade889f1 (patch)
tree0c12e6fe9e0214989401bb47a6d4503081fd47bc /ethchain/dagger.go
parent550407b0ec78b7026737d1abe28127da8c0c9063 (diff)
parentff5703fd9b089de67811af61de05637c62dc7a2c (diff)
downloadgo-tangerine-29f613ef84ed39ccc1929dd1069f3576ade889f1.tar
go-tangerine-29f613ef84ed39ccc1929dd1069f3576ade889f1.tar.gz
go-tangerine-29f613ef84ed39ccc1929dd1069f3576ade889f1.tar.bz2
go-tangerine-29f613ef84ed39ccc1929dd1069f3576ade889f1.tar.lz
go-tangerine-29f613ef84ed39ccc1929dd1069f3576ade889f1.tar.xz
go-tangerine-29f613ef84ed39ccc1929dd1069f3576ade889f1.tar.zst
go-tangerine-29f613ef84ed39ccc1929dd1069f3576ade889f1.zip
Merge pull request #28 from ethersphere/feature/keys
Feature/keys
Diffstat (limited to 'ethchain/dagger.go')
-rw-r--r--ethchain/dagger.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/ethchain/dagger.go b/ethchain/dagger.go
index b586657b9..4dda21ff5 100644
--- a/ethchain/dagger.go
+++ b/ethchain/dagger.go
@@ -1,6 +1,7 @@
package ethchain
import (
+ "github.com/ethereum/eth-go/ethcrypto"
"github.com/ethereum/eth-go/ethlog"
"github.com/ethereum/eth-go/ethutil"
"github.com/obscuren/sha3"
@@ -41,7 +42,7 @@ func (pow *EasyPow) Search(block *Block, reactChan chan ethutil.React) []byte {
powlogger.Infoln("Hashing @", int64(hashes), "khash")
}
- sha := ethutil.Sha3Bin(big.NewInt(r.Int63()).Bytes())
+ sha := ethcrypto.Sha3Bin(big.NewInt(r.Int63()).Bytes())
if pow.Verify(hash, diff, sha) {
return sha
}