utils

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2014 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsolutePath

func AbsolutePath(Datadir string, filename string) string

func BlockDo

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

Replay block

func DefaultAssetPath

func DefaultAssetPath() string

func GetMiner

func GetMiner() *ethminer.Miner

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 InitLogging(Datadir string, LogFile string, LogLevel int, DebugFile string)

func KeyTasks

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

func NewClientIdentity

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

func NewDatabase

func NewDatabase() ethutil.Database

func NewEthereum

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

func NewKeyManager

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

func RegisterInterrupt

func RegisterInterrupt(cb func(os.Signal))

Register interrupt handlers callbacks

func RunInterruptCallbacks

func RunInterruptCallbacks(sig os.Signal)

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 StartRpc

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

func StopMining

func StopMining(ethereum *eth.Ethereum) bool

Types

type VMEnv

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

func NewEnv

func NewEnv(state *ethstate.State, block *ethchain.Block, transactor []byte, value *big.Int) *VMEnv

func (*VMEnv) BlockNumber

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

func (*VMEnv) Coinbase

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

func (*VMEnv) Difficulty

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

func (*VMEnv) Origin

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

func (*VMEnv) PrevHash

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

func (*VMEnv) State

func (self *VMEnv) State() *ethstate.State

func (*VMEnv) Time

func (self *VMEnv) Time() int64

func (*VMEnv) Value

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

Jump to

Keyboard shortcuts

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