Documentation ¶
Index ¶
- Variables
- func DBProvider(ID string, backendType dbm.DBBackendType, dbDir string) dbm.DB
- func DeriveGenesisDoc(burrowGenesisDoc *genesis.GenesisDoc) *tm_types.GenesisDoc
- func EventBusAsSubscribable(eventBus tm_types.EventBusSubscriber) event.Subscribable
- func NewBlockEvent(message interface{}) *tm_types.EventDataNewBlock
- func NewLogger(logger *logging.Logger) *tendermintLogger
- func PublishAllEvents(ctx context.Context, fromSubscribable event.Subscribable, subscriber string, ...) error
- func PublishEvent(ctx context.Context, fromSubscribable event.Subscribable, subscriber string, ...) error
- func SubscribableAsEventBus(subscribable event.Subscribable) tm_types.EventBusSubscriber
- func SubscribeNewBlock(ctx context.Context, subscribable event.Subscribable) (<-chan *tm_types.EventDataNewBlock, error)
- type BurrowTendermintConfig
- type Node
Constants ¶
This section is empty.
Variables ¶
View Source
var NewBlockQuery = query.Must(event.QueryForEventID(tm_types.EventNewBlock).Query())
Functions ¶
func DBProvider ¶ added in v0.19.0
func DeriveGenesisDoc ¶ added in v0.18.0
func DeriveGenesisDoc(burrowGenesisDoc *genesis.GenesisDoc) *tm_types.GenesisDoc
func EventBusAsSubscribable ¶ added in v0.18.0
func EventBusAsSubscribable(eventBus tm_types.EventBusSubscriber) event.Subscribable
func NewBlockEvent ¶ added in v0.19.0
func NewBlockEvent(message interface{}) *tm_types.EventDataNewBlock
func PublishAllEvents ¶ added in v0.18.0
func PublishAllEvents(ctx context.Context, fromSubscribable event.Subscribable, subscriber string, toPublisher event.Publisher) error
Publishes all tendermint events available on subscribable to publisher
func PublishEvent ¶ added in v0.18.0
func SubscribableAsEventBus ¶ added in v0.18.0
func SubscribableAsEventBus(subscribable event.Subscribable) tm_types.EventBusSubscriber
func SubscribeNewBlock ¶ added in v0.18.0
func SubscribeNewBlock(ctx context.Context, subscribable event.Subscribable) (<-chan *tm_types.EventDataNewBlock, error)
Subscribe to NewBlock event safely that ensures progress by a non-blocking receive as well as handling unsubscribe
Types ¶
type BurrowTendermintConfig ¶ added in v0.18.0
type BurrowTendermintConfig struct { // Initial peers we connect to for peer exchange Seeds string // Peers to which we automatically connect PersistentPeers string ListenAddress string Moniker string TendermintRoot string }
Burrow's view on Tendermint's config. Since we operate as a Tendermint harness not all configuration values are applicable, we may not allow some values to specified, or we may not allow some to be set independently. So this serves as a layer of indirection over Tendermint's real config that we derive from ours.
func DefaultBurrowTendermintConfig ¶ added in v0.18.0
func DefaultBurrowTendermintConfig() *BurrowTendermintConfig
func (*BurrowTendermintConfig) TendermintConfig ¶ added in v0.18.0
func (btc *BurrowTendermintConfig) TendermintConfig() *tm_config.Config
type Node ¶ added in v0.18.0
Serves as a wrapper around the Tendermint node's closeable resources (database connections)
func NewNode ¶ added in v0.18.0
func NewNode(conf *config.Config, privValidator tm_types.PrivValidator, genesisDoc *tm_types.GenesisDoc, blockchain *bcm.Blockchain, checker execution.BatchExecutor, committer execution.BatchCommitter, txDecoder txs.Decoder, logger *logging.Logger) (*Node, error)
Click to show internal directories.
Click to hide internal directories.