12 lines
279 B
Go
12 lines
279 B
Go
package cmtservice
|
|
|
|
import (
|
|
"context"
|
|
|
|
coretypes "github.com/cometbft/cometbft/rpc/core/types"
|
|
)
|
|
|
|
func getValidators(ctx context.Context, rpc CometRPC, height *int64, page, limit int) (*coretypes.ResultValidators, error) {
|
|
return rpc.Validators(ctx, height, &page, &limit)
|
|
}
|