以太坊fastsync算法java实现,Khipu: 以太坊协议的一个Scala / Akka实现

Khipu: Enterprise Blockchain Platform

Khipu is an enterprise blockchain platform based on Ethereum. It is built on earlier work on Mantis.

The major researches of Khipu so far:

Try to execute transactions in a block as in parallel as possible. Average 80% transactions in one block could be executed in parallel currently

Kafka based storage engine carefully designed for blockchain with high performance both on random/sequential reading and writing

The fastest Ethereum implemention

Status - Beta Release 0.4.x

This version of the code supports

Peer discovery

Fast sync (download a recent state trie snapshot and all blocks, this is the default behaviour)

Regular sync (download and execute every transaction in every block in the chain), this will be enabled once fast sync finished

JSON RPC API

Features to be done

Reduce disk usage

Reduce memory usage

CPU mining

Execute transactions in parallel in mining

Morden testnet and private network

Unit tests

Notice

This version's data storage format may be changed before productional release.

During fast sync, sometimes the syncing looks like stopped with no more state nodes or blocks being downloaded. A possible reason that may be the current left handshaked peers could not respond to state nodes or blocks request any more. In case of this, try to stop khipu and restart it again.

Minimum requirements to run Khipu

16G RAM, 500G disk space (SSD is preferred, although HDD is okay)

Installation and Running, Building

The latest release can be downloaded from here

Running from command line:

unzip khipu-eth-x.x.x.zip

cd khipu-eth-x.x.x/bin

./khipu-eth

or

nohup ./khipu-eth &

tail -f nohup

Khipu data directory is $HOME/.khipu.eth

$ ls .khipu.eth

kesque.logs keystore nodeId.keys rocksdb

Remove kesque.logs and rocksdb will level a installation with empty blockchain data, but the keystore and nodeId.keys will be kept.

Prerequisites to build

JDK 1.8 (download from java.com)

Build the client

As an alternative to downloading the client, build the client from source.

git clone https://github.com/khipu-io/khipu.git

cd khipu

sbt khipu-eth/dist

or

sbt clean khipu-eth/dist

The packaged zip file could be found at khipu/khipu-eth/target/universal

License

Khipu is licensed under the MIT License (found in the LICENSE file in the root directory).

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值