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() *miner.Miner
- func HandleInterrupt()
- func InitConfig(vmType int, ConfigFile string, Datadir string, EnvPrefix string) *ethutil.ConfigManager
- func InitDataDir(Datadir string)
- func InitLogging(Datadir string, LogFile string, LogLevel int, DebugFile string) logger.LogSystem
- func KeyTasks(keyManager *crypto.KeyManager, KeyRing string, GenAddr bool, SecretFile string, ...)
- func NewClientIdentity(clientIdentifier, version, customIdentifier string) *wire.SimpleClientIdentity
- func NewDatabase() ethutil.Database
- func NewEthereum(db ethutil.Database, clientIdentity wire.ClientIdentity, ...) *eth.Ethereum
- func NewKeyManager(KeyStore string, Datadir string, db ethutil.Database) *crypto.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 StartWebSockets(eth *eth.Ethereum)
- func StopMining(ethereum *eth.Ethereum) bool
- type VMEnv
- func (self *VMEnv) AddLog(log state.Log)
- func (self *VMEnv) BlockHash() []byte
- func (self *VMEnv) BlockNumber() *big.Int
- func (self *VMEnv) Call(caller vm.ClosureRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error)
- func (self *VMEnv) CallCode(caller vm.ClosureRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error)
- func (self *VMEnv) Coinbase() []byte
- func (self *VMEnv) Create(caller vm.ClosureRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error, vm.ClosureRef)
- func (self *VMEnv) Depth() int
- func (self *VMEnv) Difficulty() *big.Int
- func (self *VMEnv) GasLimit() *big.Int
- func (self *VMEnv) Origin() []byte
- func (self *VMEnv) PrevHash() []byte
- func (self *VMEnv) SetDepth(i int)
- func (self *VMEnv) State() *state.StateDB
- func (self *VMEnv) Time() int64
- func (self *VMEnv) Transfer(from, to vm.Account, amount *big.Int) error
- func (self *VMEnv) Value() *big.Int
- type WebSocketServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsolutePath ¶
func DBSanityCheck ¶
func DefaultAssetPath ¶
func DefaultAssetPath() string
func FormatTransactionData ¶
func HandleInterrupt ¶
func HandleInterrupt()
go routine that call interrupt handlers in order of registering
func InitConfig ¶
func InitDataDir ¶
func InitDataDir(Datadir string)
func InitLogging ¶
func NewClientIdentity ¶
func NewClientIdentity(clientIdentifier, version, customIdentifier string) *wire.SimpleClientIdentity
func NewDatabase ¶
func NewEthereum ¶
func NewEthereum(db ethutil.Database, clientIdentity wire.ClientIdentity, keyManager *crypto.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 StartWebSockets ¶
func StartWebSockets(eth *eth.Ethereum)
func StopMining ¶
func StopMining(ethereum *eth.Ethereum) bool
Types ¶
type VMEnv ¶
func (*VMEnv) BlockNumber ¶
func (*VMEnv) Create ¶
func (self *VMEnv) Create(caller vm.ClosureRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error, vm.ClosureRef)
func (*VMEnv) Difficulty ¶
type WebSocketServer ¶
type WebSocketServer struct {
// contains filtered or unexported fields
}
func NewWebSocketServer ¶
func NewWebSocketServer(eth *eth.Ethereum) *WebSocketServer
func (*WebSocketServer) Serv ¶
func (self *WebSocketServer) Serv()
Click to show internal directories.
Click to hide internal directories.