lotus/node/impl/full.go

41 lines
854 B
Go
Raw Permalink Normal View History

package impl
2019-07-08 19:07:16 +00:00
import (
2020-10-01 15:14:08 +00:00
"context"
logging "github.com/ipfs/go-log/v2"
"github.com/filecoin-project/lotus/api"
"github.com/filecoin-project/lotus/node/impl/client"
"github.com/filecoin-project/lotus/node/impl/common"
"github.com/filecoin-project/lotus/node/impl/full"
2019-11-08 20:11:56 +00:00
"github.com/filecoin-project/lotus/node/impl/market"
"github.com/filecoin-project/lotus/node/impl/paych"
2020-10-01 15:14:08 +00:00
"github.com/filecoin-project/lotus/node/modules/dtypes"
2019-07-08 19:07:16 +00:00
)
2019-07-23 17:27:45 +00:00
var log = logging.Logger("node")
type FullNodeAPI struct {
common.CommonAPI
2019-08-20 16:48:33 +00:00
full.ChainAPI
2019-09-16 13:46:05 +00:00
client.API
2019-08-20 16:48:33 +00:00
full.MpoolAPI
full.GasAPI
2019-11-08 17:15:38 +00:00
market.MarketAPI
2019-09-16 13:46:05 +00:00
paych.PaychAPI
2019-08-20 16:48:33 +00:00
full.StateAPI
full.MsigAPI
2019-08-20 16:48:33 +00:00
full.WalletAPI
full.SyncAPI
2020-08-06 01:44:55 +00:00
full.BeaconAPI
2020-10-01 15:14:08 +00:00
DS dtypes.MetadataDS
}
func (n *FullNodeAPI) CreateBackup(ctx context.Context, fpath string) error {
return backup(n.DS, fpath)
2019-08-20 18:05:17 +00:00
}
var _ api.FullNode = &FullNodeAPI{}