aboutsummaryrefslogtreecommitdiffstats
path: root/miner/miner.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-17 19:24:51 +0800
committerobscuren <geffobscura@gmail.com>2015-02-17 19:24:58 +0800
commit8135752a32837748e6d4a986912131736b1a0aa0 (patch)
tree0ad3b6abab8a4b0c013844f93ca665526d2a567a /miner/miner.go
parent164de5e22be39ba2bdc58f84f72572252634e7e1 (diff)
downloadgo-tangerine-8135752a32837748e6d4a986912131736b1a0aa0.tar
go-tangerine-8135752a32837748e6d4a986912131736b1a0aa0.tar.gz
go-tangerine-8135752a32837748e6d4a986912131736b1a0aa0.tar.bz2
go-tangerine-8135752a32837748e6d4a986912131736b1a0aa0.tar.lz
go-tangerine-8135752a32837748e6d4a986912131736b1a0aa0.tar.xz
go-tangerine-8135752a32837748e6d4a986912131736b1a0aa0.tar.zst
go-tangerine-8135752a32837748e6d4a986912131736b1a0aa0.zip
"centralised" mining to backend. Closes #323
Diffstat (limited to 'miner/miner.go')
-rw-r--r--miner/miner.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/miner/miner.go b/miner/miner.go
index e3e7bead2..27afcf684 100644
--- a/miner/miner.go
+++ b/miner/miner.go
@@ -3,7 +3,7 @@ package miner
import (
"math/big"
- "github.com/ethereum/go-ethereum/eth"
+ "github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethereum/pow/ezp"
)
@@ -16,13 +16,13 @@ type Miner struct {
MinAcceptedGasPrice *big.Int
Extra string
- coinbase []byte
+ Coinbase []byte
mining bool
}
-func New(coinbase []byte, eth *eth.Ethereum) *Miner {
+func New(coinbase []byte, eth core.Backend) *Miner {
miner := &Miner{
- coinbase: coinbase,
+ Coinbase: coinbase,
worker: newWorker(coinbase, eth),
}