diff options
-rw-r--r-- | miner/api.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/miner/api.go b/miner/api.go index 42678b5ad..fae2203f5 100644 --- a/miner/api.go +++ b/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. |