chain_config

package
v0.0.0-...-56f3d1a Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NewChainConfigCtxErr = errors.New("new updateConfig ctx faild because param error")
)

Functions

This section is empty.

Types

type ChainConfigCtx

type ChainConfigCtx struct {
	xcontext.BaseCtx
	BcName          string
	Contract        contract.Manager
	ChainCtx        *common.ChainCtx
	OldGasPrice     *protos.GasPrice
	OldMaxBlockSize int64
}

func NewChainConfigCtx

func NewChainConfigCtx(chainCtx *common.ChainCtx) (*ChainConfigCtx, error)

type KernMethod

type KernMethod struct {
	BcName  string
	Context *ChainConfigCtx
}

func NewKernMethod

func NewKernMethod(ctx *ChainConfigCtx) *KernMethod

type LedgerRely

type LedgerRely interface {
	GetTipXMSnapshotReader() (ledger.XMSnapshotReader, error)
}

type Manager

type Manager struct {
	Ctx *ChainConfigCtx
}

func NewChainConfigManager

func NewChainConfigManager(ctx *ChainConfigCtx) (*Manager, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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