utils

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2015 License: LGPL-2.1-or-later, GPL-2.0 Imports: 19 Imported by: 0

Documentation

Overview

This file is part of go-ethereum

go-ethereum is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

go-ethereum is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with go-ethereum.  If not, see <http://www.gnu.org/licenses/>.

*

  • @authors
  • Jeffrey Wilcke <i@jev.io>
  • Viktor Tron <viktor@ethdev.com>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockDo

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

Replay block

func DefaultAssetPath

func DefaultAssetPath() string

func FormatTransactionData

func FormatTransactionData(data string) []byte

func GetMiner

func GetMiner() *miner.Miner

func HandleInterrupt

func HandleInterrupt()

go routine that call interrupt handlers in order of registering

func ImportChain

func ImportChain(ethereum *eth.Ethereum, fn string) error

func InitConfig

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

func KeyTasks

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

func RegisterInterrupt

func RegisterInterrupt(cb func(os.Signal))

Register interrupt handlers callbacks

func RunInterruptCallbacks

func RunInterruptCallbacks(sig os.Signal)

func StartEthereum

func StartEthereum(ethereum *eth.Ethereum)

func StartMining

func StartMining(ethereum *eth.Ethereum) bool

func StartRpc

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

func StartWebSockets

func StartWebSockets(eth *eth.Ethereum, wsPort int)

func StopMining

func StopMining(ethereum *eth.Ethereum) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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