Documentation ¶
Index ¶
- func AbsolutePath(Datadir string, filename string) string
- func BlockDo(ethereum *eth.Ethereum, hash []byte) error
- func DBSanityCheck(db ethutil.Database) error
- func DefaultAssetPath() string
- func FormatTransactionData(data string) []byte
- func GetMiner() *ethminer.Miner
- func HandleInterrupt()
- func InitConfig(ConfigFile string, Datadir string, EnvPrefix string) *ethutil.ConfigManager
- func InitDataDir(Datadir string)
- func InitLogging(Datadir string, LogFile string, LogLevel int, DebugFile string) ethlog.LogSystem
- func KeyTasks(keyManager *ethcrypto.KeyManager, KeyRing string, GenAddr bool, ...)
- func NewClientIdentity(clientIdentifier, version, customIdentifier string) *ethwire.SimpleClientIdentity
- func NewDatabase() ethutil.Database
- func NewEthereum(db ethutil.Database, clientIdentity ethwire.ClientIdentity, ...) *eth.Ethereum
- func NewKeyManager(KeyStore string, Datadir string, db ethutil.Database) *ethcrypto.KeyManager
- func RegisterInterrupt(cb func(os.Signal))
- func RunInterruptCallbacks(sig os.Signal)
- func ShowGenesis(ethereum *eth.Ethereum)
- func StartEthereum(ethereum *eth.Ethereum, UseSeed bool)
- func StartMining(ethereum *eth.Ethereum) bool
- func StartRpc(ethereum *eth.Ethereum, RpcPort int)
- func StopMining(ethereum *eth.Ethereum) bool
- type VMEnv
- func (self *VMEnv) BlockHash() []byte
- func (self *VMEnv) BlockNumber() *big.Int
- func (self *VMEnv) Coinbase() []byte
- func (self *VMEnv) Difficulty() *big.Int
- func (self *VMEnv) Origin() []byte
- func (self *VMEnv) PrevHash() []byte
- func (self *VMEnv) State() *ethstate.State
- func (self *VMEnv) Time() int64
- func (self *VMEnv) Value() *big.Int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsolutePath ¶
func DBSanityCheck ¶ added in v0.6.5
func DefaultAssetPath ¶
func DefaultAssetPath() string
func FormatTransactionData ¶ added in v0.6.3
func HandleInterrupt ¶
func HandleInterrupt()
go routine that call interrupt handlers in order of registering
func InitConfig ¶
func InitConfig(ConfigFile string, Datadir string, EnvPrefix string) *ethutil.ConfigManager
func InitDataDir ¶
func InitDataDir(Datadir string)
func InitLogging ¶
func NewClientIdentity ¶
func NewClientIdentity(clientIdentifier, version, customIdentifier string) *ethwire.SimpleClientIdentity
func NewDatabase ¶
func NewEthereum ¶
func NewEthereum(db ethutil.Database, clientIdentity ethwire.ClientIdentity, keyManager *ethcrypto.KeyManager, usePnp bool, OutboundPort string, MaxPeer int) *eth.Ethereum
func NewKeyManager ¶
func RegisterInterrupt ¶
Register interrupt handlers callbacks
func RunInterruptCallbacks ¶
func ShowGenesis ¶
func ShowGenesis(ethereum *eth.Ethereum)
func StartEthereum ¶
func StartEthereum(ethereum *eth.Ethereum, UseSeed bool)
func StartMining ¶
func StartMining(ethereum *eth.Ethereum) bool
func StopMining ¶
func StopMining(ethereum *eth.Ethereum) bool
Types ¶
type VMEnv ¶
type VMEnv struct {
// contains filtered or unexported fields
}
func (*VMEnv) BlockNumber ¶
func (*VMEnv) Difficulty ¶
Click to show internal directories.
Click to hide internal directories.