From 9aa715805779b6d8856cd36edff01ec421d83f30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Tue, 2 Feb 2016 20:22:21 +0200 Subject: [PATCH] miner: register newly created remote agent in the API --- miner/api.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/miner/api.go b/miner/api.go index 42678b5ad7..fae2203f52 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.