core

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasePlugin

type BasePlugin interface {
	GetInstance() *BasePlugin
	BeginBlock(header *types.Header, state *state.StateDB) (bool, error)
	EndBlock(header *types.Header, state *state.StateDB) (bool, error)
	Confirmed(block *types.Block) error
}

type BlockChainReactor

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

func GetInstance

func GetInstance() *BlockChainReactor

Getting the global bcr single instance

func New

func New(mux *event.TypeMux) *BlockChainReactor

func (*BlockChainReactor) BeginBlocker

func (bcr *BlockChainReactor) BeginBlocker(header *types.Header, state *state.StateDB) (bool, error)

Called before every block has not executed all txs

func (*BlockChainReactor) EndBlocker

func (bcr *BlockChainReactor) EndBlocker(header *types.Header, state *state.StateDB) (bool, error)

Called after every block had executed all txs

func (*BlockChainReactor) RegisterPlugin

func (bcr *BlockChainReactor) RegisterPlugin(pluginName string, plugin BasePlugin)

func (*BlockChainReactor) SetBeginRule

func (bcr *BlockChainReactor) SetBeginRule(rule []string)

func (*BlockChainReactor) SetEndRule

func (bcr *BlockChainReactor) SetEndRule(rule []string)

Jump to

Keyboard shortcuts

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