synchron

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInconsistentDB = errors.New("inconsistent db status")

Functions

This section is empty.

Types

type ChainKeeper

type ChainKeeper struct {
	// contains filtered or unexported fields
}

func NewChainKeeper

func NewChainKeeper(db *gorm.DB, cfg *config.Config, targetHeight uint64) (*ChainKeeper, error)

func (*ChainKeeper) AttachBlock

func (c *ChainKeeper) AttachBlock(db *gorm.DB, chainStatus *orm.ChainStatus, block *types.Block) error

func (*ChainKeeper) SyncBlock

func (c *ChainKeeper) SyncBlock() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL