Documentation ¶
Overview ¶
Package service provides the tendermint service interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenesisProvider ¶
type GenesisProvider interface {
GetTendermintGenesisDocument() (*tmtypes.GenesisDoc, error)
}
GenesisProvider is a tendermint specific genesis document provider.
type TendermintService ¶
type TendermintService interface { service.BackgroundService consensus.Backend // Started returns the channel that will be closed when the // tendermint service has been started. Started() <-chan struct{} // RegisterApplication registers an ABCI multiplexer application // with this service instance and check that its dependencies are // registered. RegisterApplication(abci.Application) error // SetTransactionAuthHandler configures the transaction fee handler for the // ABCI multiplexer. SetTransactionAuthHandler(abci.TransactionAuthHandler) error // GetHeight returns the Tendermint block height. GetHeight(ctx context.Context) (int64, error) // GetBlock returns the Tendermint block at the specified height. GetTendermintBlock(ctx context.Context, height int64) (*tmtypes.Block, error) // GetBlockResults returns the ABCI results from processing a block // at a specific height. GetBlockResults(height int64) (*tmrpctypes.ResultBlockResults, error) // WatchTendermintBlocks returns a stream of Tendermint blocks as they are // returned via the `EventDataNewBlock` query. WatchTendermintBlocks() (<-chan *tmtypes.Block, *pubsub.Subscription) // Subscribe subscribes to tendermint events. Subscribe(subscriber string, query tmpubsub.Query) (tmtypes.Subscription, error) // Unsubscribe unsubscribes from tendermint events. Unsubscribe(subscriber string, query tmpubsub.Query) error }
TendermintService provides Tendermint access to Oasis core backends.
Click to show internal directories.
Click to hide internal directories.