Go implementation of the Ethereum protocol
Find a file
2018-11-19 17:11:41 +07:00
.github remove issue template 2018-04-03 11:45:08 +07:00
accounts new blocksigner contract 2018-07-23 11:05:03 +07:00
bmt all: use gometalinter.v2, fix new gosimple issues (#15650) 2017-12-12 19:05:47 +01:00
build remove unused files in build/ 2018-07-31 14:49:33 +07:00
cmd enable txPool flags 2018-11-19 12:58:43 +07:00
common limit max threshold nonce in queue 2018-11-10 10:42:46 +07:00
compression/rle rlp, trie, contracts, compression, consensus: improve comments (#14580) 2017-06-12 14:45:17 +02:00
consensus fix error double validation : m2 not validate body before verify block 2018-11-14 09:14:28 +07:00
console fix typo 2018-04-10 16:57:24 +07:00
containers/docker containers: drop vagrant support, noone's maintaining it 2018-03-14 13:23:40 +02:00
contracts Fixed reward inflation and add unit test. 2018-11-09 15:09:08 +07:00
core fix unit test: remove td test 2018-11-14 16:28:56 +07:00
crypto gofmt 2018-10-04 17:13:39 +07:00
dashboard cmd, ethdb, vendor: integrate leveldb iostats (#16277) 2018-03-08 14:59:00 +02:00
docker maxpeers, not maxpeer 2018-11-06 14:19:17 +07:00
eth fix error double validation : m2 not validate body before verify block 2018-11-14 09:14:28 +07:00
ethclient all: switch gas limits from big.Int to uint64 2018-01-03 14:45:35 +02:00
ethdb cmd: export preimages in RLP, support GZIP, uniform with block export 2018-03-26 14:08:01 +03:00
ethstats omit ethstats weird warning msg 2018-07-27 11:12:33 +07:00
event event: fix datarace between Subscribe and Send 2017-10-20 14:42:19 +03:00
genesis Add MultiSigWallet SMC. 2018-11-06 09:56:21 +07:00
internal fix maximum 100 % finality 2018-11-05 11:16:42 +07:00
les Fixed test problem when change config MaxBlockFetch in downloader. 2018-08-17 15:02:45 +07:00
light light: new CHT for ropsten (#16393) 2018-03-27 10:09:15 +03:00
log log: fix megacheck warnings 2017-08-07 13:40:05 +03:00
metrics metrics: fix flaky Example metrics test (#16222) 2018-03-01 19:55:31 +02:00
miner Merge pull request #279 from ngtuna/updateM1-failure 2018-11-16 13:58:10 +07:00
mobile whisper: some components are still using v5, switch to v6 2018-03-22 15:48:52 +01:00
node clean up CLI options 2018-10-08 10:50:28 +07:00
p2p Fixed golint. 2018-11-06 11:40:47 +07:00
params bump up beta 0.3.0 2018-11-19 10:58:11 +07:00
rlp rlp: fix string size check in readKind (#15625) 2017-12-11 22:47:10 +01:00
rpc Disable function send transaction with rpc 2018-08-22 16:56:22 +07:00
swarm Fixed golint. 2018-11-06 11:40:47 +07:00
tests Fixed unit test for new m2 block header. 2018-10-25 01:27:23 +07:00
trie metrics: pull library and introduce ResettingTimer and InfluxDB reporter (#15910) 2018-02-23 11:56:08 +02:00
vendor fix EOF file at commit crypto/bn256: fix issues caused by Go 1.11 2018-11-03 13:42:51 +07:00
whisper whisper: fix issue in topic list copy (#16381) 2018-03-27 17:26:08 +02:00
.dockerignore dockerignore, internal/build: forward correct git folder 2017-11-12 22:52:41 +02:00
.gitattributes .gitattributes: add 2015-08-06 17:18:59 +02:00
.gitignore merge upstream 2018-05-03 04:05:41 +00:00
.mailmap all: update license information (#16089) 2018-02-14 13:49:11 +01:00
.travis.yml add go1.11, remove go1.9 2018-10-04 15:03:06 +07:00
appveyor.yml travis, Dockerfile, appveyor, build: bump to Go 1.10 2018-03-08 16:34:26 +02:00
AUTHORS all: update license information (#16089) 2018-02-14 13:49:11 +01:00
COPYING all: update license information 2015-07-07 14:12:44 +02:00
COPYING.LESSER all: update license information 2015-07-07 14:12:44 +02:00
Dockerfile Add new pipeline for bootnode binary 2018-07-23 14:57:59 +07:00
Dockerfile.bootnode refactor bootnode docker 2018-09-12 17:10:02 +07:00
Dockerfile.node Update node image verbosity 2018-09-25 16:53:59 +07:00
interfaces.go all: switch gas limits from big.Int to uint64 2018-01-03 14:45:35 +02:00
Makefile clean up Makefile 2018-07-31 14:49:10 +07:00
README.md clarify running localy vs running a masternode 2018-09-18 11:13:44 +07:00

Tomochain

Build Status Join the chat at https://gitter.im/tomochain/tomochain

About Tomochain

TomoChain is an innovative solution to the scalability problem with the Ethereum blockchain. Our mission is to be a leading force in building the Internet of Value, and its infrastructure. We are working to create an alternative, scalable financial system which is more secure, transparent, efficient, inclusive and equitable for everyone.

TomoChain relies on a system of 150 Masternodes with Proof of Stake Voting consensus that can support near-zero fee, and 2-second transaction confirmation time. Security, stability and chain finality are guaranteed via novel techniques such as double validation, staking via smart-contracts and "true" randomization processes.

Tomochain supports all EVM-compatible smart-contracts, protocols, and atomic cross-chain token transfers. New scaling techniques such as sharding, private-chain generation, hardware integration will be continuously researched and incorporated into Tomochain's masternode architecture which will be an ideal scalable smart-contract public blockchain for decentralized apps, token issuances and token integrations for small and big businesses.

More details can be found at our technical white paper

Reading more about us on:

Tomochain vs Giants

Tomochain is built by the mindset of standing on the giants shoulder. We have learned from all advanced technical design concept of many well-known public blockchains on the market and shaped up the platform with our own ingredients. See below the overall technical comparison table that we try to make clear the position of Tomochain comparing to some popular blockchains at the top-tier.

Tomochain

*We just updated the number of masternodes accepted in the network to a maximum of 150

Building the source

Tomochain provides client binary called tomo for both running a masternode and running a full-node. Building tomo requires both a Go (1.7+) and a C compiler. Install them by your own way. Once the dependencies are installed, just run below commands:

$ git clone https://github.com/tomochain/tomochain tomochain
$ cd tomochain
$ make tomo

Alternatively, you could quickly download pre-complied binary on our github release page

Running tomo

Running a tomo masternode

Please refer to the official documentation on how to run a node if you goal is to run a masternode. The recommanded ways of running a node and applying to become a masternode are explained in detail there.

Attaching to the Tomochain test network

We published our test network 2.0 with full implementation of PoSV consensus at https://stats.testnet.tomochain.com. If you'd like to experiment with smart contracts creation and DApps, you might be interested in giving it a try on our Testnet.

In order to connect to one of the masternodes on the Testnet, just run the command below:

$ tomo attach https://testnet.tomochain.com

This will open the JavaScript console and let you query the blockchain directly via RPC.

Running tomo locally

If you would like to run tomo locally to see how it works under the hood and have a copy of the blockchain, you can try it on our Testnet by running the commands below:

// 1. create a folder to store tomochain data on your machine
$ export DATA_DIR=/path/to/your/data/folder
$ mkdir -p $DATA_DIR/tomo

// 2. download our genesis file
$ export GENESIS_PATH=$DATA_DIR/genesis.json
$ curl -L https://raw.githubusercontent.com/tomochain/tomochain/master/genesis/testnet.json -o $GENESIS_PATH

// 3. init the chain from genesis
$ tomo init $GENESIS_PATH --datadir $DATA_DIR

// 4. get a test account. Create a new one if you don't have any:
$ export KEYSTORE_DIR=keystore
$ touch $DATA_DIR/password && echo 'your-password' > $DATA_DIR/password
$ tomo account new \
      --datadir $DATA_DIR \
      --keystore $KEYSTORE_DIR \
      --password $DATA_DIR/password

// if you already have a test account, import it now
$ tomo  account import ./private_key \
      --datadir $DATA_DIR \
      --keystore $KEYSTORE_DIR \
      --password $DATA_DIR/password

// get the account
$ account=$(
  tomo account list --datadir $DATA_DIR  --keystore $KEYSTORE_DIR \
  2> /dev/null \
  | head -n 1 \
  | cut -d"{" -f 2 | cut -d"}" -f 1
)

// 5. prepare the bootnodes list
$ export BOOTNODES="enode://4d3c2cc0ce7135c1778c6f1cfda623ab44b4b6db55289543d48ecfde7d7111fd420c42174a9f2fea511a04cf6eac4ec69b4456bfaaae0e5bd236107d3172b013@52.221.28.223:30301,enode://298780104303fcdb37a84c5702ebd9ec660971629f68a933fd91f7350c54eea0e294b0857f1fd2e8dba2869fcc36b83e6de553c386cf4ff26f19672955d9f312@13.251.101.216:30301,enode://46dba3a8721c589bede3c134d755eb1a38ae7c5a4c69249b8317c55adc8d46a369f98b06514ecec4b4ff150712085176818d18f59a9e6311a52dbe68cff5b2ae@13.250.94.232:30301"

// 6. Start up tomo now
$ export NAME=YOUR_NODE_NAME
$ tomo \
  --verbosity 4 \
  --datadir $DATA_DIR \
  --keystore $KEYSTORE_DIR \
  --identity $NAME \
  --password $DATA_DIR \
  --networkid 89 \
  --port 30303 \
  --rpc \
  --rpccorsdomain "*" \
  --rpcaddr 0.0.0.0 \
  --rpcport 8545 \
  --rpcvhosts "*" \
  --ws \
  --wsaddr 0.0.0.0 \
  --wsport 8546 \
  --wsorigins "*" \
  --mine \
  --gasprice "1" \
  --targetgaslimit "420000000"

Some explanations on the flags

--verbosity: log level from 1 to 5. Here we're using 4 for debug messages
--datadir: path to your data directory created above.
--keystore: path to your account's keystore created above.
--identity: your full-node's name.
--password: your account's password.
--networkid: our testnet network ID.
--port: your full-node's listening port (default to 30303)
--rpc, --rpccorsdomain, --rpcaddr, --rpcport, --rpcvhosts: your full-node will accept RPC requests at 8545 TCP.
--ws, --wsaddr, --wsport, --wsorigins: your full-node will accept Websocket requests at 8546 TCP.
--mine: your full-node wants to register to be a candidate for masternode selection.
--gasprice: Minimal gas price to accept for mining a transaction.
--targetgaslimit: Target gas limit sets the artificial target gas floor for the blocks to mine (default: 4712388)

Road map

The implementation of the following features is being studied by our research team:

  • Layer 2 scalability with state sharding
  • Asynchronize EVM execution
  • Multi-chains interoperabilty
  • Spam filtering
  • DEX integration

Contribution and technical discuss

Thank you for considering to try out our network and/or help out with the source code. We would love to get your help, feel free to lend a hand. Even the smallest bit of code, bug reporting or just discussing ideas are highly appreciated.

If you would like to contribute to the tomochain source code, please refer to our Developer Guide for details on configuring development environment, managing dependencies, compiling, testing and submitting your code changes to our repo.

Please also make sure your contributions adhere to the base coding guidelines:

  • Code must adhere the official Go formatting guidelines (i.e uses gofmt).
  • Code must be documented adhering to the official Go commentary guidelines.
  • Pull requests need to be based on and opened against the master branch.
  • Problem you are trying to contribute must be well-explained as an issue on our github issue page
  • Commit messages should be short but clear enough and should refer to the corresponding pre-logged issue mentioned above.

For technical discussion, feel free to join our chat at Gitter.