synchron

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInconsistentDB = errors.New("inconsistent db status")
	ErrOutputType     = errors.New("error output type")
)

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) *ChainKeeper

func (*ChainKeeper) AttachBlock

func (c *ChainKeeper) AttachBlock(block *types.Block, txStatus *bc.TransactionStatus) error

func (*ChainKeeper) DetachBlock

func (c *ChainKeeper) DetachBlock(block *types.Block, txStatus *bc.TransactionStatus) error

func (*ChainKeeper) Run

func (c *ChainKeeper) Run()

Jump to

Keyboard shortcuts

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