"centralised" mining to backend. Closes #323
This commit is contained in:
@ -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),
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user