diff options
author | Determinant <[email protected]> | 2019-08-30 09:00:43 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2019-08-30 09:00:43 -0400 |
commit | 0424afc658dae706b017aeb3d6208026c1f6f547 (patch) | |
tree | cae1127d880fbe8ea5454821d330dc9acc4ed112 /miner/miner.go | |
parent | bf3776a5d5475f9ee35820099debfc49d71ea10c (diff) |
add callbacks for the miner
Diffstat (limited to 'miner/miner.go')
-rw-r--r-- | miner/miner.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miner/miner.go b/miner/miner.go index 51cded2..1f1baa8 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -56,9 +56,9 @@ type Miner struct { w *worker } -func New(eth Backend, config *Config, chainConfig *params.ChainConfig, mux *event.TypeMux, engine consensus.Engine, isLocalBlock func(block *types.Block) bool) *Miner { +func New(eth Backend, config *Config, chainConfig *params.ChainConfig, mux *event.TypeMux, engine consensus.Engine, isLocalBlock func(block *types.Block) bool, mcb *MinerCallbacks) *Miner { return &Miner{ - w: newWorker(config, chainConfig, engine, eth, mux, isLocalBlock), + w: newWorker(config, chainConfig, engine, eth, mux, isLocalBlock, mcb), } } |