docsgen, gofmt

This commit is contained in:
Łukasz Magiera 2020-10-10 20:46:06 +02:00
parent 18e58467f8
commit 32d95fc97a
3 changed files with 15 additions and 4 deletions

View File

@ -111,7 +111,7 @@ type FullNodeStruct struct {
SyncCheckpoint func(ctx context.Context, key types.TipSetKey) error `perm:"admin"` SyncCheckpoint func(ctx context.Context, key types.TipSetKey) error `perm:"admin"`
SyncMarkBad func(ctx context.Context, bcid cid.Cid) error `perm:"admin"` SyncMarkBad func(ctx context.Context, bcid cid.Cid) error `perm:"admin"`
SyncUnmarkBad func(ctx context.Context, bcid cid.Cid) error `perm:"admin"` SyncUnmarkBad func(ctx context.Context, bcid cid.Cid) error `perm:"admin"`
SyncUnmarkAllBad func(ctx context.Context) error `perm:"admin"` SyncUnmarkAllBad func(ctx context.Context) error `perm:"admin"`
SyncCheckBad func(ctx context.Context, bcid cid.Cid) (string, error) `perm:"read"` SyncCheckBad func(ctx context.Context, bcid cid.Cid) (string, error) `perm:"read"`
SyncValidateTipset func(ctx context.Context, tsk types.TipSetKey) (bool, error) `perm:"read"` SyncValidateTipset func(ctx context.Context, tsk types.TipSetKey) (bool, error) `perm:"read"`

View File

@ -122,11 +122,11 @@ var syncMarkBadCmd = &cli.Command{
} }
var syncUnmarkBadCmd = &cli.Command{ var syncUnmarkBadCmd = &cli.Command{
Name: "unmark-bad", Name: "unmark-bad",
Usage: "Unmark the given block as bad, makes it possible to sync to a chain containing it", Usage: "Unmark the given block as bad, makes it possible to sync to a chain containing it",
Flags: []cli.Flag{ Flags: []cli.Flag{
&cli.BoolFlag{ &cli.BoolFlag{
Name: "all", Name: "all",
Usage: "drop the entire bad block cache", Usage: "drop the entire bad block cache",
}, },
}, },

View File

@ -175,6 +175,7 @@
* [SyncMarkBad](#SyncMarkBad) * [SyncMarkBad](#SyncMarkBad)
* [SyncState](#SyncState) * [SyncState](#SyncState)
* [SyncSubmitBlock](#SyncSubmitBlock) * [SyncSubmitBlock](#SyncSubmitBlock)
* [SyncUnmarkAllBad](#SyncUnmarkAllBad)
* [SyncUnmarkBad](#SyncUnmarkBad) * [SyncUnmarkBad](#SyncUnmarkBad)
* [SyncValidateTipset](#SyncValidateTipset) * [SyncValidateTipset](#SyncValidateTipset)
* [Wallet](#Wallet) * [Wallet](#Wallet)
@ -4546,6 +4547,16 @@ Inputs:
Response: `{}` Response: `{}`
### SyncUnmarkAllBad
SyncUnmarkAllBad purges bad block cache, making it possible to sync to chains previously marked as bad
Perms: admin
Inputs: `null`
Response: `{}`
### SyncUnmarkBad ### SyncUnmarkBad
SyncUnmarkBad unmarks a blocks as bad, making it possible to be validated and synced again. SyncUnmarkBad unmarks a blocks as bad, making it possible to be validated and synced again.