utils

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2014 License: GPL-2.0 Imports: 24 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 DBSanityCheck added in v0.6.5

func DBSanityCheck(db ethutil.Database) error

func DefaultAssetPath

func DefaultAssetPath() string

func FormatTransactionData added in v0.6.3

func FormatTransactionData(data string) []byte

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) ethlog.LogSystem

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 StartWebSockets added in v0.6.8

func StartWebSockets(eth *eth.Ethereum)

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) BlockHash added in v0.6.3

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

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

type WebSocketServer added in v0.6.8

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

func NewWebSocketServer added in v0.6.8

func NewWebSocketServer(eth *eth.Ethereum) *WebSocketServer

func (*WebSocketServer) Serv added in v0.6.8

func (self *WebSocketServer) Serv()

Jump to

Keyboard shortcuts

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