aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/dagger.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <obscuren@users.noreply.github.com>2014-07-07 16:59:16 +0800
committerJeffrey Wilcke <obscuren@users.noreply.github.com>2014-07-07 16:59:16 +0800
commit6fe9b4ab5e839be96eb1c4a619bc14fab622d8d1 (patch)
treeb8b1218e456d3daaad4a36e6ba022323c3762038 /ethchain/dagger.go
parent9dab7dcc3c99d387ad2c0a1623b574d3023bdfae (diff)
downloaddexon-6fe9b4ab5e839be96eb1c4a619bc14fab622d8d1.tar.gz
dexon-6fe9b4ab5e839be96eb1c4a619bc14fab622d8d1.tar.zst
dexon-6fe9b4ab5e839be96eb1c4a619bc14fab622d8d1.zip
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