Versions in this module Expand all Collapse all v1 v1.0.0 May 26, 2022 Changes in this version + var ErrInconsistentDB = errors.New("inconsistent db status") + type ChainKeeper struct + func NewChainKeeper(db *gorm.DB, cfg *config.Config, targetHeight uint64) (*ChainKeeper, error) + func (c *ChainKeeper) AttachBlock(db *gorm.DB, chainStatus *orm.ChainStatus, block *types.Block) error + func (c *ChainKeeper) SyncBlock() error