Skip to content

Commit

Permalink
Remove duplicate definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ales Dumikau committed Nov 23, 2023
1 parent 18ca8c1 commit b123fc0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion gateway/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ const (
// TargetAPI defines the API methods that the Node depends on
// (to make it easy to mock for tests)
type TargetAPI interface {
StateMinerFaults(context.Context, address.Address, types.TipSetKey) (bitfield.BitField, error)
StateMarketParticipants(context.Context, types.TipSetKey) (map[string]api.MarketBalance, error)
MpoolPending(context.Context, types.TipSetKey) ([]*types.SignedMessage, error)
ChainGetBlock(context.Context, cid.Cid) (*types.BlockHeader, error)
Expand Down
10 changes: 0 additions & 10 deletions gateway/proxy_fil.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,6 @@ import (
"github.com/filecoin-project/lotus/node/modules/dtypes"
)

func (gw *Node) StateMinerFaults(ctx context.Context, addr address.Address, tsk types.TipSetKey) (bitfield.BitField, error) {
if err := gw.limit(ctx, stateRateLimitTokens); err != nil {
return nil, err
}
if err := gw.checkTipsetKey(ctx, tsk); err != nil {
return nil, err
}
return gw.target.StateMinerFaults(ctx, addr, tsk)
}

func (gw *Node) StateMarketParticipants(ctx context.Context, tsk types.TipSetKey) (map[string]api.MarketBalance, error) {
if err := gw.limit(ctx, stateRateLimitTokens); err != nil {
return nil, err
Expand Down

0 comments on commit b123fc0

Please sign in to comment.