diff --git a/cli/util/api.go b/cli/util/api.go index 7b06efdf3..b76544d57 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 >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'") + return httpHeads, xerrors.Errorf("could not get API info: none configured. \nConsider getting base.toml with './lotus-provider config get base >/tmp/base.toml' \nthen adding \n[APIs] \n ChainApiInfo = [\" result_from lotus auth api-info --perm=admin \"]\n and updating it with './lotus-provider config set /tmp/base.toml'") } for _, i := range ainfoCfg { ainfo := ParseApiInfo(i) diff --git a/cmd/lotus-provider/run.go b/cmd/lotus-provider/run.go index 005cb9ebf..29825f7db 100644 --- a/cmd/lotus-provider/run.go +++ b/cmd/lotus-provider/run.go @@ -204,7 +204,10 @@ var runCmd = &cli.Command{ sa, err := StorageAuth(cfg.Apis.StorageRPCSecret) if err != nil { - return xerrors.Errorf("parsing Apis.StorageRPCSecret config: %w", err) + return xerrors.Errorf(`'%w' while parsing the config toml's + [Apis] + StorageRPCSecret=%v +Get it from the JSON documents in ~/.lotus-miner/keystore called .PrivateKey`, err, cfg.Apis.StorageRPCSecret) } al := alerting.NewAlertingSystem(j) diff --git a/lib/harmony/harmonydb/sql/20230823.sql b/lib/harmony/harmonydb/sql/20230823.sql index 1865f6afe..c6f993d76 100644 --- a/lib/harmony/harmonydb/sql/20230823.sql +++ b/lib/harmony/harmonydb/sql/20230823.sql @@ -37,12 +37,12 @@ create table wdpost_proofs create table wdpost_recovery_tasks ( task_id bigint not null - constraint wdpost_partition_tasks_pk + constraint wdpost_recovery_tasks_pk primary key, sp_id bigint not null, proving_period_start bigint not null, deadline_index bigint not null, partition_index bigint not null, - constraint wdpost_partition_tasks_identity_key + constraint wdpost_recovery_tasks_identity_key unique (sp_id, proving_period_start, deadline_index, partition_index) ); \ No newline at end of file