diff options
author | Jeffrey Wilcke <obscuren@users.noreply.github.com> | 2014-07-01 22:16:05 +0800 |
---|---|---|
committer | Jeffrey Wilcke <obscuren@users.noreply.github.com> | 2014-07-01 22:16:05 +0800 |
commit | 29f613ef84ed39ccc1929dd1069f3576ade889f1 (patch) | |
tree | 0c12e6fe9e0214989401bb47a6d4503081fd47bc /ethchain/dagger.go | |
parent | 550407b0ec78b7026737d1abe28127da8c0c9063 (diff) | |
parent | ff5703fd9b089de67811af61de05637c62dc7a2c (diff) | |
download | go-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.go | 3 |
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 } |