Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BuildTime string
BuildTime build time
View Source
var CodeVersion string
CodeVersion is the version string of code
View Source
var GitHash string
GitHash git hash
Functions ¶
Types ¶
type BaseVariable ¶
type BaseVariable interface { StateDB() db.MVCCDB Config() *common.Config BlockChain() block.Chain }
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) StateDB ¶
func (g *BaseVariableImpl) StateDB() db.MVCCDB
StateDB return the state database
Click to show internal directories.
Click to hide internal directories.