node

package
v0.71.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoHostSpecified = errors.New("no host specified")

Functions

This section is empty.

Types

type ErrorCode

type ErrorCode codes.Code

type Forwarder

type Forwarder struct {
	// contains filtered or unexported fields
}

func NewForwarder

func NewForwarder(log *zap.Logger, nodeConfigs network.GRPCConfig) (*Forwarder, error)

func (*Forwarder) CheckTx

func (*Forwarder) HealthCheck

func (n *Forwarder) HealthCheck(ctx context.Context) error

func (*Forwarder) LastBlockHeightAndHash

func (n *Forwarder) LastBlockHeightAndHash(ctx context.Context) (*api.LastBlockHeightResponse, int, error)

LastBlockHeightAndHash returns information about the last block from vega and the node it used to fetch it.

func (*Forwarder) SpamStatistics added in v0.68.0

func (n *Forwarder) SpamStatistics(ctx context.Context, pubkey string) (*api.GetSpamStatisticsResponse, int, error)

func (*Forwarder) Stop

func (n *Forwarder) Stop()

type StatusError

type StatusError struct {
	Code    codes.Code
	Details []string
}

func (*StatusError) Error

func (e *StatusError) Error() string

Jump to

Keyboard shortcuts

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