utils

package
v0.7.11 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2014 License: LGPL-2.1-or-later, GPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsolutePath added in v0.7.10

func AbsolutePath(Datadir string, filename string) string

func BlockDo added in v0.7.10

func BlockDo(ethereum *eth.Ethereum, hash []byte) error

Replay block

func DBSanityCheck added in v0.7.10

func DBSanityCheck(db ethutil.Database) error

func DefaultAssetPath added in v0.7.10

func DefaultAssetPath() string

func FormatTransactionData added in v0.7.10

func FormatTransactionData(data string) []byte

func GetMiner added in v0.7.10

func GetMiner() *miner.Miner

func HandleInterrupt added in v0.7.10

func HandleInterrupt()

go routine that call interrupt handlers in order of registering

func InitConfig added in v0.7.10

func InitConfig(vmType int, ConfigFile string, Datadir string, EnvPrefix string) *ethutil.ConfigManager

func InitDataDir added in v0.7.10

func InitDataDir(Datadir string)

func InitLogging added in v0.7.10

func InitLogging(Datadir string, LogFile string, LogLevel int, DebugFile string) logger.LogSystem

func KeyTasks added in v0.7.10

func KeyTasks(keyManager *crypto.KeyManager, KeyRing string, GenAddr bool, SecretFile string, ExportDir string, NonInteractive bool)

func NewClientIdentity added in v0.7.10

func NewClientIdentity(clientIdentifier, version, customIdentifier string) *wire.SimpleClientIdentity

func NewDatabase added in v0.7.10

func NewDatabase() ethutil.Database

func NewEthereum added in v0.7.10

func NewEthereum(db ethutil.Database, clientIdentity wire.ClientIdentity, keyManager *crypto.KeyManager, usePnp bool, OutboundPort string, MaxPeer int) *eth.Ethereum

func NewKeyManager added in v0.7.10

func NewKeyManager(KeyStore string, Datadir string, db ethutil.Database) *crypto.KeyManager

func RegisterInterrupt added in v0.7.10

func RegisterInterrupt(cb func(os.Signal))

Register interrupt handlers callbacks

func RunInterruptCallbacks added in v0.7.10

func RunInterruptCallbacks(sig os.Signal)

func ShowGenesis added in v0.7.10

func ShowGenesis(ethereum *eth.Ethereum)

func StartEthereum added in v0.7.10

func StartEthereum(ethereum *eth.Ethereum, UseSeed bool)

func StartMining added in v0.7.10

func StartMining(ethereum *eth.Ethereum) bool

func StartRpc added in v0.7.10

func StartRpc(ethereum *eth.Ethereum, RpcPort int)

func StartWebSockets added in v0.7.10

func StartWebSockets(eth *eth.Ethereum)

func StopMining added in v0.7.10

func StopMining(ethereum *eth.Ethereum) bool

Types

type VMEnv added in v0.7.10

type VMEnv struct {
	Gas *big.Int
	// contains filtered or unexported fields
}

func NewEnv added in v0.7.10

func NewEnv(state *state.StateDB, block *types.Block, transactor []byte, value *big.Int) *VMEnv

func (*VMEnv) AddLog added in v0.7.10

func (self *VMEnv) AddLog(log state.Log)

func (*VMEnv) BlockHash added in v0.7.10

func (self *VMEnv) BlockHash() []byte

func (*VMEnv) BlockNumber added in v0.7.10

func (self *VMEnv) BlockNumber() *big.Int

func (*VMEnv) Call added in v0.7.10

func (self *VMEnv) Call(caller vm.ClosureRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error)

func (*VMEnv) CallCode added in v0.7.10

func (self *VMEnv) CallCode(caller vm.ClosureRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error)

func (*VMEnv) Coinbase added in v0.7.10

func (self *VMEnv) Coinbase() []byte

func (*VMEnv) Create added in v0.7.10

func (self *VMEnv) Create(caller vm.ClosureRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error, vm.ClosureRef)

func (*VMEnv) Depth added in v0.7.10

func (self *VMEnv) Depth() int

func (*VMEnv) Difficulty added in v0.7.10

func (self *VMEnv) Difficulty() *big.Int

func (*VMEnv) GasLimit added in v0.7.10

func (self *VMEnv) GasLimit() *big.Int

func (*VMEnv) Origin added in v0.7.10

func (self *VMEnv) Origin() []byte

func (*VMEnv) PrevHash added in v0.7.10

func (self *VMEnv) PrevHash() []byte

func (*VMEnv) SetDepth added in v0.7.10

func (self *VMEnv) SetDepth(i int)

func (*VMEnv) State added in v0.7.10

func (self *VMEnv) State() *state.StateDB

func (*VMEnv) Time added in v0.7.10

func (self *VMEnv) Time() int64

func (*VMEnv) Transfer added in v0.7.10

func (self *VMEnv) Transfer(from, to vm.Account, amount *big.Int) error

func (*VMEnv) Value added in v0.7.10

func (self *VMEnv) Value() *big.Int

type WebSocketServer added in v0.7.10

type WebSocketServer struct {
	// contains filtered or unexported fields
}

func NewWebSocketServer added in v0.7.10

func NewWebSocketServer(eth *eth.Ethereum) *WebSocketServer

func (*WebSocketServer) Serv added in v0.7.10

func (self *WebSocketServer) Serv()

Jump to

Keyboard shortcuts

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