renamed api config

This commit is contained in:
Andrew Jackson (Ajax) 2023-10-19 18:19:42 -05:00
parent 6695a2d936
commit 5b5ae80e30
3 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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
}

View File

@ -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 {