Documentation
¶
Index ¶
- Constants
- func CometLogger() (logger log.Logger)
- func CreateAndStartEventBus() (*cometTypes.EventBus, error)
- func CreateAndStartProxyAppConns(config *Config) (proxy.AppConns, error)
- func CreateEvidenceReactor(config *Config, stateStore sm.Store, blockStore *store.BlockStore) (*evidence.Reactor, *evidence.Pool, error)
- func CreateMempool(config *Config, proxyApp proxy.AppConns, state sm.State) mempl.Mempool
- func CreateSwitch(config *Config, transport p2p.Transport, bcReactor p2p.Reactor, ...) *p2p.Switch
- func DefaultDBProvider(ctx *DBContext) (dbm.DB, error)
- func DoHandshake(stateStore sm.Store, state sm.State, blockStore sm.BlockStore, ...) error
- func GetBlockstoreDBs(config *Config) (dbm.DB, *store.BlockStore, error)
- func GetStateDBs(config *Config) (dbm.DB, state.Store, error)
- func LoadConfig(homePath string) (*cfg.Config, error)
- func MakeNodeInfo(config *Config, nodeKey *p2p.NodeKey, genDoc *GenesisDoc) (p2p.NodeInfo, error)
- type Block
- type BlockchainReactor
- type Config
- type DBContext
- type Engine
- func (engine *Engine) ApplyBlock(runtime string, value []byte) error
- func (engine *Engine) ApplyFirstBlockOverP2P(runtime string, value, nextValue []byte) error
- func (engine *Engine) ApplySnapshotChunk(chunkIndex uint32, value []byte) (string, error)
- func (engine *Engine) BootstrapState(value []byte) error
- func (engine *Engine) CloseDBs() error
- func (engine *Engine) DoHandshake() error
- func (engine *Engine) GetAppHeight() (int64, error)
- func (engine *Engine) GetBaseHeight() int64
- func (engine *Engine) GetBlock(height int64) ([]byte, error)
- func (engine *Engine) GetChainId() (string, error)
- func (engine *Engine) GetContinuationHeight() (int64, error)
- func (engine *Engine) GetGenesisHeight() (int64, error)
- func (engine *Engine) GetGenesisPath() string
- func (engine *Engine) GetHeight() int64
- func (engine *Engine) GetHomePath() string
- func (engine *Engine) GetMetrics() ([]byte, error)
- func (engine *Engine) GetName() string
- func (engine *Engine) GetProxyAppAddress() string
- func (engine *Engine) GetSeenCommit(height int64) ([]byte, error)
- func (engine *Engine) GetSnapshotChunk(height, format, chunk int64) ([]byte, error)
- func (engine *Engine) GetSnapshots() ([]byte, error)
- func (engine *Engine) GetState(height int64) ([]byte, error)
- func (engine *Engine) IsSnapshotAvailable(height int64) (bool, error)
- func (engine *Engine) OfferSnapshot(value []byte) (string, uint32, error)
- func (engine *Engine) OpenDBs(homePath string) error
- func (engine *Engine) PruneBlocks(toHeight int64) error
- func (engine *Engine) ResetAll(homePath string, keepAddrBook bool) error
- func (engine *Engine) StartProxyApp() error
- func (engine *Engine) StopProxyApp() error
- type GenesisDoc
- type KsyncCometLogger
- type LightBlock
- type Snapshot
- type TendermintBsyncBundle
- type TendermintBsyncDataItem
- type TendermintBundle
- type TendermintDataItem
- type TendermintSsyncBundle
- type TendermintSsyncDataItem
- type TendermintValue
Constants ¶
View Source
const (
BlocksyncChannel = byte(0x40)
)
Variables ¶
This section is empty.
Functions ¶
func CometLogger ¶
func CreateAndStartEventBus ¶
func CreateAndStartEventBus() (*cometTypes.EventBus, error)
func CreateEvidenceReactor ¶
func CreateMempool ¶
func CreateSwitch ¶
func DoHandshake ¶
func DoHandshake( stateStore sm.Store, state sm.State, blockStore sm.BlockStore, genDoc *GenesisDoc, eventBus cometTypes.BlockEventPublisher, proxyApp proxy.AppConns, ) error
func GetBlockstoreDBs ¶
func MakeNodeInfo ¶
Types ¶
type Block ¶
type Block = cometTypes.Block
type BlockchainReactor ¶
type BlockchainReactor struct { p2p.BaseReactor // contains filtered or unexported fields }
func NewBlockchainReactor ¶
func NewBlockchainReactor(block *Block, nextBlock *Block) *BlockchainReactor
func (*BlockchainReactor) GetChannels ¶
func (bcR *BlockchainReactor) GetChannels() []*p2p.ChannelDescriptor
func (*BlockchainReactor) ReceiveEnvelope ¶
func (bcR *BlockchainReactor) ReceiveEnvelope(e p2p.Envelope)
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) ApplyFirstBlockOverP2P ¶
func (*Engine) ApplySnapshotChunk ¶
func (*Engine) BootstrapState ¶
func (*Engine) DoHandshake ¶
func (*Engine) GetAppHeight ¶
func (*Engine) GetBaseHeight ¶
func (*Engine) GetChainId ¶
func (*Engine) GetContinuationHeight ¶
func (*Engine) GetGenesisHeight ¶
func (*Engine) GetGenesisPath ¶
func (*Engine) GetHomePath ¶
func (*Engine) GetMetrics ¶
func (*Engine) GetProxyAppAddress ¶
func (*Engine) GetSnapshotChunk ¶
func (*Engine) GetSnapshots ¶
func (*Engine) IsSnapshotAvailable ¶
func (*Engine) OfferSnapshot ¶
func (*Engine) PruneBlocks ¶
func (*Engine) StartProxyApp ¶
func (*Engine) StopProxyApp ¶
type GenesisDoc ¶
type GenesisDoc = cometTypes.GenesisDoc
type KsyncCometLogger ¶
type KsyncCometLogger struct {
// contains filtered or unexported fields
}
func (KsyncCometLogger) Debug ¶
func (l KsyncCometLogger) Debug(msg string, keyvals ...interface{})
func (KsyncCometLogger) Error ¶
func (l KsyncCometLogger) Error(msg string, keyvals ...interface{})
func (KsyncCometLogger) Info ¶
func (l KsyncCometLogger) Info(msg string, keyvals ...interface{})
func (KsyncCometLogger) With ¶
func (l KsyncCometLogger) With(keyvals ...interface{}) (logger log.Logger)
type LightBlock ¶
type LightBlock = cometTypes.LightBlock
type TendermintBsyncBundle ¶
type TendermintBsyncBundle = []TendermintBsyncDataItem
type TendermintBsyncDataItem ¶
type TendermintBundle ¶
type TendermintBundle = []TendermintDataItem
type TendermintDataItem ¶
type TendermintDataItem struct { Key string `json:"key"` Value TendermintValue `json:"value"` }
type TendermintSsyncBundle ¶
type TendermintSsyncBundle = []TendermintSsyncDataItem
type TendermintSsyncDataItem ¶
type TendermintSsyncDataItem struct { Key string `json:"key"` Value struct { Snapshot *abciTypes.Snapshot `json:"snapshot"` Block *Block `json:"block"` SeenCommit *cometTypes.Commit `json:"seenCommit"` State *cometState.State `json:"state"` ChunkIndex uint32 `json:"chunkIndex"` Chunk []byte `json:"chunk"` } `json:"value"` }
type TendermintValue ¶
type TendermintValue struct { Block struct { Block *Block `json:"block"` } `json:"block"` }
Click to show internal directories.
Click to hide internal directories.