Skip to content

Commit

Permalink
Merge pull request #10550 from filecoin-project/asr/api-comment
Browse files Browse the repository at this point in the history
docs: api: clarify MpoolClear params
  • Loading branch information
magik6k authored Mar 28, 2023
2 parents 2120fae + 8bb5d98 commit 5aa6dd1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions api/api_full.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,10 @@ type FullNode interface {
MpoolGetNonce(context.Context, address.Address) (uint64, error) //perm:read
MpoolSub(context.Context) (<-chan MpoolUpdate, error) //perm:read

// MpoolClear clears pending messages from the mpool
MpoolClear(context.Context, bool) error //perm:write
// MpoolClear clears pending messages from the mpool.
// If clearLocal is true, ALL messages will be cleared.
// If clearLocal is false, local messages will be protected, all others will be cleared.
MpoolClear(ctx context.Context, clearLocal bool) error //perm:write

// MpoolGetConfig returns (a copy of) the current mpool config
MpoolGetConfig(context.Context) (*types.MpoolConfig, error) //perm:read
Expand Down
Binary file modified build/openrpc/full.json.gz
Binary file not shown.
4 changes: 3 additions & 1 deletion documentation/en/api-v1-unstable-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -3941,7 +3941,9 @@ Response:
```

### MpoolClear
MpoolClear clears pending messages from the mpool
MpoolClear clears pending messages from the mpool.
If clearLocal is true, ALL messages will be cleared.
If clearLocal is false, local messages will be protected, all others will be cleared.


Perms: write
Expand Down

0 comments on commit 5aa6dd1

Please sign in to comment.