Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockChain

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

func NewBlockChain

func NewBlockChain(databaseConnection ethdb.Database) (*BlockChain, error)

func (*BlockChain) BlockChain

func (sb *BlockChain) BlockChain() *core.BlockChain

func (*BlockChain) Config

func (sb *BlockChain) Config() *params.ChainConfig

func (*BlockChain) Engine

func (sb *BlockChain) Engine() consensus.Engine

type BlockValidator

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

func NewBlockValidator

func NewBlockValidator(blockChain BlockChain) *BlockValidator

func (*BlockValidator) ValidateState

func (sv *BlockValidator) ValidateState(block *types.Block, state *state.StateDB, receipts types.Receipts, usedGas uint64) error

type GethBlockValidator

type GethBlockValidator interface {
	ValidateState(block *types.Block, state *state.StateDB, receipts types.Receipts, usedGas uint64) error
}

type GethCoreBlockChain

type GethCoreBlockChain interface {
	BlockChain() *core.BlockChain
	Config() *params.ChainConfig
	Engine() consensus.Engine
}

type GethStateProcessor

type GethStateProcessor interface {
	Process(block *types.Block, statedb *state.StateDB) (types.Receipts, []*types.Log, uint64, error)
}

type StateProcessor

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

func NewStateProcessor

func NewStateProcessor(blockChain BlockChain) *StateProcessor

func (*StateProcessor) Process

func (sp *StateProcessor) Process(block *types.Block, statedb *state.StateDB) (types.Receipts, []*types.Log, uint64, error)

Directories

Path Synopsis