Commit db056eea authored by Péter Szilágyi's avatar Péter Szilágyi

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

miner: register newly created remote agent in the API
parents 6005dcef 9aa71580
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment