Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BuildTime string
BuildTime build time
View Source
var GitHash string
GitHash git hash
Functions ¶
Types ¶
type BaseVariable ¶
type BaseVariable interface { StateDB() db.MVCCDB Config() *common.Config BlockChain() block.Chain Mode() TMode SetMode(m TMode) Continuous() int }
BaseVariable defines BaseVariable's API.
type BaseVariableImpl ¶
type BaseVariableImpl struct {
// contains filtered or unexported fields
}
BaseVariableImpl is the implementation of BaseVariable
func New ¶
func New(conf *common.Config) (*BaseVariableImpl, error)
New return a BaseVariable instance
func (*BaseVariableImpl) BlockChain ¶
func (g *BaseVariableImpl) BlockChain() block.Chain
BlockChain return the block chain
func (*BaseVariableImpl) Config ¶
func (g *BaseVariableImpl) Config() *common.Config
Config return the config
func (*BaseVariableImpl) Continuous ¶ added in v1.1.0
func (g *BaseVariableImpl) Continuous() int
Continuous return the number of continue blocks
func (*BaseVariableImpl) SetMode ¶
func (g *BaseVariableImpl) SetMode(m TMode)
SetMode is set the mode
func (*BaseVariableImpl) StateDB ¶
func (g *BaseVariableImpl) StateDB() db.MVCCDB
StateDB return the state database
Click to show internal directories.
Click to hide internal directories.