aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/dagger.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <obscuren@users.noreply.github.com>2014-07-07 16:59:26 +0800
committerJeffrey Wilcke <obscuren@users.noreply.github.com>2014-07-07 16:59:26 +0800
commit239a5d3230f29e1309ef9f00aa19a1e4f537afd4 (patch)
treeb8b1218e456d3daaad4a36e6ba022323c3762038 /ethchain/dagger.go
parent9dab7dcc3c99d387ad2c0a1623b574d3023bdfae (diff)
parent6fe9b4ab5e839be96eb1c4a619bc14fab622d8d1 (diff)
downloaddexon-239a5d3230f29e1309ef9f00aa19a1e4f537afd4.tar
dexon-239a5d3230f29e1309ef9f00aa19a1e4f537afd4.tar.gz
dexon-239a5d3230f29e1309ef9f00aa19a1e4f537afd4.tar.bz2
dexon-239a5d3230f29e1309ef9f00aa19a1e4f537afd4.tar.lz
dexon-239a5d3230f29e1309ef9f00aa19a1e4f537afd4.tar.xz
dexon-239a5d3230f29e1309ef9f00aa19a1e4f537afd4.tar.zst
dexon-239a5d3230f29e1309ef9f00aa19a1e4f537afd4.zip
Merge pull request #34 from ethereum/revert-33-feature/ethutil-refactor
Revert "ethreact - Feature/ethutil refactor"
Diffstat (limited to 'ethchain/dagger.go')
-rw-r--r--ethchain/dagger.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/ethchain/dagger.go b/ethchain/dagger.go
index adf1c2f05..4dda21ff5 100644
--- a/ethchain/dagger.go
+++ b/ethchain/dagger.go
@@ -3,7 +3,6 @@ package ethchain
import (
"github.com/ethereum/eth-go/ethcrypto"
"github.com/ethereum/eth-go/ethlog"
- "github.com/ethereum/eth-go/ethreact"
"github.com/ethereum/eth-go/ethutil"
"github.com/obscuren/sha3"
"hash"
@@ -15,7 +14,7 @@ import (
var powlogger = ethlog.NewLogger("POW")
type PoW interface {
- Search(block *Block, reactChan chan ethreact.Event) []byte
+ Search(block *Block, reactChan chan ethutil.React) []byte
Verify(hash []byte, diff *big.Int, nonce []byte) bool
}
@@ -23,7 +22,7 @@ type EasyPow struct {
hash *big.Int
}
-func (pow *EasyPow) Search(block *Block, reactChan chan ethreact.Event) []byte {
+func (pow *EasyPow) Search(block *Block, reactChan chan ethutil.React) []byte {
r := rand.New(rand.NewSource(time.Now().UnixNano()))
hash := block.HashNoNonce()
diff := block.Difficulty