comet

package
v0.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	// Validators returns the cometBFT validators at the given height or false if not
	// available (probably due to snapshot sync after height).
	Validators(ctx context.Context, height int64) (*cmttypes.ValidatorSet, bool, error)

	// IsValidator returns true if the given address is a validator at the latest height.
	// It is best-effort, so returns false on any error.
	IsValidator(ctx context.Context, valAddress common.Address) bool
}

func NewAPI

func NewAPI(cl rpcclient.Client) API

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL