GithubHelp home page GithubHelp logo

mqshen / khipu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from khipu-io/khipu

0.0 1.0 0.0 579 KB

A Scala/Akka implementation of the Ethereum protocol

License: MIT License

Scala 99.87% Python 0.13%

khipu's Introduction

Khipu: A Scala/Akka implementation of the Ethereum protocol

Khipu is developed and maintained by khipu.io Team. It is built on earlier work on Mantis by Grothendieck Team.

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
  • A storage engine (Kesque) specially designed for blockchain, developed based on Kafka's log engine. Which perform only 1 disk I/O at most for 99.x% random read

Status - Alpha Release 0.1.0-alpha

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

Features to be done

  • Reduce disk usage
  • Reduce memory usage
  • CPU mining
  • Execute transactions in parallel in mining
  • JSON RPC API (useful for console and Mist integration)
  • Morden testnet and private network
  • Unit tests

Notice

This version's data storage format may be changed during 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, 250G disk space (SSD is preferred, although HDD is okay)
  • Under regular sync mode, if you restart Khipu, it may take 25 minutes (SSD), or 815 minutes (HDD) to load the storage indexes

Installation and Running, Building

The latest release can be downloaded from here

Running from command line:

unzip khipu-eth-0.1.0.zip
cd khipu-eth-0.1.0/bin
./khipu-eth

or

nohup ./khipu-eth &
tail -f nohup

Khipu data directory is $HOME/.khipu.eth

$ ls .khipu.eth
kesque.logs  keystore  leveldb  nodeId.keys

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

Prerequisites to build

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

khipu's People

Contributors

dcaoyuan avatar

Watchers

miaoqi shen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.