Documentation
¶
Index ¶
- Constants
- 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 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(rawBlock, nextRawBlock []byte) error
- func (engine *Engine) ApplyFirstBlockOverP2P(rawBlock, nextRawBlock []byte) error
- func (engine *Engine) ApplySnapshotChunk(chunkIndex int64, chunk []byte) error
- func (engine *Engine) BootstrapState(rawState, rawSeenCommit, rawBlock []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) GetHeight() int64
- func (engine *Engine) GetName() string
- func (engine *Engine) GetProxyAppAddress() string
- func (engine *Engine) GetRpcListenAddress() 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) LoadConfig() error
- func (engine *Engine) OfferSnapshot(rawSnapshot, rawState []byte) error
- func (engine *Engine) OpenDBs() error
- func (engine *Engine) PruneBlocks(toHeight int64) error
- func (engine *Engine) ResetAll(keepAddrBook bool) error
- func (engine *Engine) StartProxyApp() error
- func (engine *Engine) StartRPCServer(port int64)
- func (engine *Engine) StopProxyApp() error
- type EngineLogger
- type GenesisDoc
- type Snapshot
- type Transport
Constants ¶
View Source
const (
BlocksyncChannel = byte(0x40)
)
Variables ¶
This section is empty.
Functions ¶
func CreateMempool ¶
func CreateSwitch ¶
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) ApplyBlock ¶
func (*Engine) ApplyFirstBlockOverP2P ¶
func (*Engine) ApplySnapshotChunk ¶
func (*Engine) BootstrapState ¶
func (*Engine) DoHandshake ¶
func (*Engine) GetAppHeight ¶
func (*Engine) GetBaseHeight ¶
func (*Engine) GetProxyAppAddress ¶
func (*Engine) GetRpcListenAddress ¶ added in v1.9.0
func (*Engine) GetSnapshotChunk ¶
func (*Engine) GetSnapshots ¶
func (*Engine) IsSnapshotAvailable ¶
func (*Engine) LoadConfig ¶ added in v1.8.0
func (*Engine) OfferSnapshot ¶
func (*Engine) PruneBlocks ¶
func (*Engine) StartProxyApp ¶
func (*Engine) StartRPCServer ¶ added in v1.7.0
func (*Engine) StopProxyApp ¶
type EngineLogger ¶ added in v1.9.0
type EngineLogger struct {
// contains filtered or unexported fields
}
func (EngineLogger) Debug ¶ added in v1.9.0
func (l EngineLogger) Debug(msg string, keyvals ...interface{})
func (EngineLogger) Error ¶ added in v1.9.0
func (l EngineLogger) Error(msg string, keyvals ...interface{})
func (EngineLogger) Info ¶ added in v1.9.0
func (l EngineLogger) Info(msg string, keyvals ...interface{})
func (EngineLogger) With ¶ added in v1.9.0
func (l EngineLogger) With(keyvals ...interface{}) log.Logger
type GenesisDoc ¶
type GenesisDoc = cometTypes.GenesisDoc
type Transport ¶ added in v1.7.0
type Transport struct {
// contains filtered or unexported fields
}
func (*Transport) IsListening ¶ added in v1.7.0
Click to show internal directories.
Click to hide internal directories.