shift

module
v2.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2016 License: GPL-3.0

README

SHIFT Blocktime

Fixed at 50 seconds (average target 35-40 seconds)

SHIFT Blockreward

Static reward of 2 Shift per block.

Building SHIFT

For prerequisites and detailed build instructions please read the Installation Instructions on the wiki.

Building gshift requires both a Go and a C compiler. You can install them using your favourite package manager. Once the dependencies are installed, run

make gshift

Executables

Go Shift comes with several wrappers/executables found in the cmd directory:

  • gshift Shift CLI (shift command line interface client)
  • bootnode runs a bootstrap node for the Discovery Protocol
  • shifttest test tool which runs with the tests suite: /path/to/test.json > shftest --test BlockTests --stdin.
  • evm is a generic Shift Virtual Machine: evm -code 60ff60ff -gas 10000 -price 0 -dump. See -h for a detailed description.
  • disasm disassembles EVM code: echo "6001" | disasm
  • rlpdump prints RLP structures

Command line options

gshift can be configured via command line options, environment variables and config files.

To get the options available:

gshift help

WIKI (to be added on readthedocs)

Contribution

If you'd like to contribute to shift please fork, fix, commit and send a pull request. Commits who do not comply with the coding standards are ignored (use gofmt!). If you send pull requests make absolute sure that you commit on the develop branch and that you do not merge to master. Commits that are directly based on master are simply ignored.

See Developers' Guide for more details on configuring your environment, testing, and dependency management.

Directories

Path Synopsis
Godeps
Package accounts implements encrypted storage of secp256k1 private keys.
Package accounts implements encrypted storage of secp256k1 private keys.
cmd
Package common contains various helper functions.
Package common contains various helper functions.
compression
Package core implements the Shift consensus protocol.
Package core implements the Shift consensus protocol.
Package event implements an event multiplexer.
Package event implements an event multiplexer.
internal
Package jsre provides execution environment for JavaScript.
Package jsre provides execution environment for JavaScript.
Package light implements on-demand retrieval capable state and chain objects for the Shift Light Client.
Package light implements on-demand retrieval capable state and chain objects for the Shift Light Client.
Package logger implements a multi-output leveled logger.
Package logger implements a multi-output leveled logger.
Package metrics provides general system and process level metrics collection.
Package metrics provides general system and process level metrics collection.
Package miner implements Shift block creation and mining.
Package miner implements Shift block creation and mining.
Package node represents the Shift protocol stack container.
Package node represents the Shift protocol stack container.
p2p
Package p2p implements the Shift p2p network protocols.
Package p2p implements the Shift p2p network protocols.
pow
Package release contains the node service that tracks client releases.
Package release contains the node service that tracks client releases.
Package rlp implements the RLP serialization format.
Package rlp implements the RLP serialization format.
Package rpc provides access to the exported methods of an object across a network or other I/O connection.
Package rpc provides access to the exported methods of an object across a network or other I/O connection.
shf
Package eth implements the Shift protocol.
Package eth implements the Shift protocol.
Package tests implements execution of Shift JSON tests.
Package tests implements execution of Shift JSON tests.
Package trie implements Merkle Patricia Tries.
Package trie implements Merkle Patricia Tries.
Package whisper implements the Whisper PoC-1.
Package whisper implements the Whisper PoC-1.

Jump to

Keyboard shortcuts

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