numassigner: Fix missing api perms
This commit is contained in:
parent
129eba2b5d
commit
64290b69c9
@ -541,7 +541,7 @@ type FullNode interface {
|
||||
// StateMinerSectorCount returns the number of sectors in a miner's sector set and proving set
|
||||
StateMinerSectorCount(context.Context, address.Address, types.TipSetKey) (MinerSectors, error) //perm:read
|
||||
// StateMinerAllocated returns a bitfield containing all sector numbers marked as allocated in miner state
|
||||
StateMinerAllocated(context.Context, address.Address, types.TipSetKey) (*bitfield.BitField, error)
|
||||
StateMinerAllocated(context.Context, address.Address, types.TipSetKey) (*bitfield.BitField, error) //perm:read
|
||||
// StateCompute is a flexible command that applies the given messages on the given tipset.
|
||||
// The messages are run as though the VM were at the provided height.
|
||||
//
|
||||
|
@ -125,10 +125,10 @@ type StorageMiner interface {
|
||||
SectorAbortUpgrade(context.Context, abi.SectorNumber) error //perm:admin
|
||||
|
||||
// SectorNumAssignerMeta returns sector number assigner metadata - reserved/allocated
|
||||
SectorNumAssignerMeta(ctx context.Context) (NumAssignerMeta, error)
|
||||
SectorNumReservations(ctx context.Context) (map[string]bitfield.BitField, error)
|
||||
SectorNumReserve(ctx context.Context, name string, field bitfield.BitField, force bool) error
|
||||
SectorNumFree(ctx context.Context, name string) error
|
||||
SectorNumAssignerMeta(ctx context.Context) (NumAssignerMeta, error) //perm:read
|
||||
SectorNumReservations(ctx context.Context) (map[string]bitfield.BitField, error) //perm:read
|
||||
SectorNumReserve(ctx context.Context, name string, field bitfield.BitField, force bool) error //perm:admin
|
||||
SectorNumFree(ctx context.Context, name string) error //perm:admin
|
||||
|
||||
// WorkerConnect tells the node to connect to workers RPC
|
||||
WorkerConnect(context.Context, string) error //perm:admin retry:true
|
||||
|
@ -391,7 +391,7 @@ type FullNodeStruct struct {
|
||||
|
||||
StateMinerActiveSectors func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) ([]*miner.SectorOnChainInfo, error) `perm:"read"`
|
||||
|
||||
StateMinerAllocated func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*bitfield.BitField, error) ``
|
||||
StateMinerAllocated func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (*bitfield.BitField, error) `perm:"read"`
|
||||
|
||||
StateMinerAvailableBalance func(p0 context.Context, p1 address.Address, p2 types.TipSetKey) (types.BigInt, error) `perm:"read"`
|
||||
|
||||
@ -826,13 +826,13 @@ type StorageMinerStruct struct {
|
||||
|
||||
SectorMatchPendingPiecesToOpenSectors func(p0 context.Context) error `perm:"admin"`
|
||||
|
||||
SectorNumAssignerMeta func(p0 context.Context) (NumAssignerMeta, error) ``
|
||||
SectorNumAssignerMeta func(p0 context.Context) (NumAssignerMeta, error) `perm:"read"`
|
||||
|
||||
SectorNumFree func(p0 context.Context, p1 string) error ``
|
||||
SectorNumFree func(p0 context.Context, p1 string) error `perm:"admin"`
|
||||
|
||||
SectorNumReservations func(p0 context.Context) (map[string]bitfield.BitField, error) ``
|
||||
SectorNumReservations func(p0 context.Context) (map[string]bitfield.BitField, error) `perm:"read"`
|
||||
|
||||
SectorNumReserve func(p0 context.Context, p1 string, p2 bitfield.BitField, p3 bool) error ``
|
||||
SectorNumReserve func(p0 context.Context, p1 string, p2 bitfield.BitField, p3 bool) error `perm:"admin"`
|
||||
|
||||
SectorPreCommitFlush func(p0 context.Context) ([]sealiface.PreCommitBatchRes, error) `perm:"admin"`
|
||||
|
||||
|
Binary file not shown.
@ -2946,7 +2946,7 @@ Response: `{}`
|
||||
SectorNumAssignerMeta returns sector number assigner metadata - reserved/allocated
|
||||
|
||||
|
||||
Perms:
|
||||
Perms: read
|
||||
|
||||
Inputs: `null`
|
||||
|
||||
@ -2966,9 +2966,9 @@ Response:
|
||||
```
|
||||
|
||||
### SectorNumFree
|
||||
There are not yet any comments for this method.
|
||||
|
||||
Perms:
|
||||
|
||||
Perms: admin
|
||||
|
||||
Inputs:
|
||||
```json
|
||||
@ -2980,9 +2980,9 @@ Inputs:
|
||||
Response: `{}`
|
||||
|
||||
### SectorNumReservations
|
||||
There are not yet any comments for this method.
|
||||
|
||||
Perms:
|
||||
|
||||
Perms: read
|
||||
|
||||
Inputs: `null`
|
||||
|
||||
@ -2999,9 +2999,9 @@ Response:
|
||||
```
|
||||
|
||||
### SectorNumReserve
|
||||
There are not yet any comments for this method.
|
||||
|
||||
Perms:
|
||||
|
||||
Perms: admin
|
||||
|
||||
Inputs:
|
||||
```json
|
||||
|
@ -6159,7 +6159,7 @@ Response:
|
||||
StateMinerAllocated returns a bitfield containing all sector numbers marked as allocated in miner state
|
||||
|
||||
|
||||
Perms:
|
||||
Perms: read
|
||||
|
||||
Inputs:
|
||||
```json
|
||||
|
@ -39,9 +39,9 @@ import (
|
||||
"github.com/filecoin-project/lotus/node"
|
||||
"github.com/filecoin-project/lotus/node/config"
|
||||
"github.com/filecoin-project/lotus/node/impl"
|
||||
"github.com/filecoin-project/lotus/node/modules"
|
||||
"github.com/filecoin-project/lotus/node/repo"
|
||||
"github.com/filecoin-project/lotus/storage/paths"
|
||||
sealing "github.com/filecoin-project/lotus/storage/pipeline"
|
||||
"github.com/filecoin-project/lotus/storage/sealer/storiface"
|
||||
)
|
||||
|
||||
@ -190,7 +190,7 @@ func PrepareMiner(t *TestEnvironment) (*LotusMiner, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
nic := storedcounter.New(ds, datastore.NewKey(modules.StorageCounterDSPrefix))
|
||||
nic := storedcounter.New(ds, datastore.NewKey(sealing.StorageCounterDSPrefix))
|
||||
for i := 0; i < (sectors + 1); i++ {
|
||||
_, err = nic.Next()
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user