From 5b5ae80e30aa7425613c8a8f9fce4fff73b9b810 Mon Sep 17 00:00:00 2001 From: "Andrew Jackson (Ajax)" Date: Thu, 19 Oct 2023 18:19:42 -0500 Subject: [PATCH] renamed api config --- cli/util/api.go | 2 +- cmd/lotus-provider/run.go | 2 +- node/config/types.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/util/api.go b/cli/util/api.go index 1d2bf50b7..7b06efdf3 100644 --- a/cli/util/api.go +++ b/cli/util/api.go @@ -168,7 +168,7 @@ func GetRawAPIMultiV2(ctx *cli.Context, ainfoCfg []string, version string) ([]Ht var httpHeads []HttpHead if len(ainfoCfg) == 0 { - return httpHeads, xerrors.Errorf("could not get API info: none configured. \nConsider getting base.toml with './lotus-provider config get base' \nthen adding \n[APIs] \ndaemon = [\"lotusdaemon:1234\"]\n and updating it with './lotus-provider config set base.toml'") + return httpHeads, xerrors.Errorf("could not get API info: none configured. \nConsider getting base.toml with './lotus-provider config get base >base.toml' \nthen adding \n[APIs] \n FULLNODE_API_INFO = [\" result_from lotus auth api-info --perm=admin \"]\n and updating it with './lotus-provider config set base.toml'") } for _, i := range ainfoCfg { ainfo := ParseApiInfo(i) diff --git a/cmd/lotus-provider/run.go b/cmd/lotus-provider/run.go index 5846ba5e9..951ed6615 100644 --- a/cmd/lotus-provider/run.go +++ b/cmd/lotus-provider/run.go @@ -233,7 +233,7 @@ var runCmd = &cli.Command{ if err != nil { return err } - full, fullCloser, err := cliutil.GetFullNodeAPIV1LotusProvider(cctx, cfg.Apis.Daemon) // TODO switch this into DB entries. + full, fullCloser, err := cliutil.GetFullNodeAPIV1LotusProvider(cctx, cfg.Apis.FULLNODE_API_INFO) // TODO switch this into DB entries. if err != nil { return err } diff --git a/node/config/types.go b/node/config/types.go index b30464180..472cbc9ec 100644 --- a/node/config/types.go +++ b/node/config/types.go @@ -79,8 +79,8 @@ type LotusProviderConfig struct { } type ApisConfig struct { - // Daemon is the API endpoint for the Lotus daemon. - Daemon []string + // FULLNODE_API_INFO is the API endpoint for the Lotus daemon. + FULLNODE_API_INFO []string } type JournalConfig struct {