Register miner address from storageminer process

This commit is contained in:
Łukasz Magiera
2019-08-20 19:19:24 +02:00
parent 82c449c047
commit eda26faf21
9 changed files with 47 additions and 16 deletions
+3 -3
View File
@@ -12,7 +12,7 @@ import (
var log = logging.Logger("node")
type API struct {
type FullNodeAPI struct {
CommonAPI
full.ChainAPI
full.ClientAPI
@@ -24,8 +24,8 @@ type API struct {
Miner *miner.Miner
}
func (a *API) MinerRegister(ctx context.Context, addr address.Address) error {
func (a *FullNodeAPI) MinerRegister(ctx context.Context, addr address.Address) error {
return a.Miner.Register(addr)
}
var _ api.FullNode = &API{}
var _ api.FullNode = &FullNodeAPI{}