package
2.0.0+incompatible
Repository: https://github.com/okex/exchain.git
Documentation: pkg.go.dev

# Functions

NewBlockchainReactor creates a new reactor instance.
NopMetrics returns no-op Metrics.
PrometheusMetrics returns metrics for in and out events, errors, etc.
RegisterBlockchainMessages registers the fast sync messages for amino encoding.

# Constants

BlockchainChannel is a channel for blocks and status updates (`BlockStore` height).
MetricsSubsystem is a subsystem shared by all metrics exposed by this package.

# Structs

BlockchainReactor handles fast sync protocol.
Metrics contains metrics exposed by this package.
Routine is a structure that models a finite state machine as serialized stream of events processed by a handle function.

# Interfaces

BlockchainMessage is a generic message for this reactor.

# Type aliases

Event is the type that can be added to the priority queue.
PeerByID is a list of peers sorted by peerID.