api

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: GPL-3.0 Imports: 8 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 {
	SyncProgress() (eth.SyncProgress, error)
	BroadcastTx(tx ethTypes.Transaction) error
	Status() (tmtcTypes.ResultStatus, error)
	NetInfo() (tmtcTypes.ResultNetInfo, error)
}

API is a main consensus interface exposing functionalities to `database` and other packages.

func NewConsensusApi added in v1.2.0

func NewConsensusApi(isRunning func() bool) API

Jump to

Keyboard shortcuts

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