Merge pull request #2170 from karalabe/fix-miner-registration

miner: register newly created remote agent in the API
pull/2169/head
Péter Szilágyi 9 years ago
commit db056eeafe
  1. 5
      miner/api.go

@ -33,7 +33,10 @@ type PublicMinerAPI struct {
// NewPublicMinerAPI create a new PublicMinerAPI instance.
func NewPublicMinerAPI(miner *Miner) *PublicMinerAPI {
return &PublicMinerAPI{miner, NewRemoteAgent()}
agent := NewRemoteAgent()
miner.Register(agent)
return &PublicMinerAPI{miner, agent}
}
// Mining returns an indication if this node is currently mining.

Loading…
Cancel
Save