Giter Site home page Giter Site logo

pavelkrolevets / clique Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 62 MB

Fast setup Ethereum POA private blockchain for testing (tmux: 1 bootnode, 3 mining nodes, 1 sec block)

Shell 100.00%
poa ethereum testing permissioned-blockchain geth easy-to-use tmux

clique's Introduction

Etherium Proof-Of-Authoriry blockchain

Preliminary:

tmux

For Linux instructions are here

For OSX run:

brew install tmux

Build Geth and Bootnode (command line client):

Compile and copy geth and bootnode binaries to the root directory. Instructions are here

Clone the repository to a directory of your choosing:

git clone https://github.com/ethereum/go-ethereum

Building geth requires the Go compiler:

brew install go

Finally, build the geth program using the following command.

cd go-ethereum
make all

You can now find binary files in build/bin/geth to start your node.

Copy geth and bootnode to clique folder.

Run:

  1. Clean blockchain data:
sh clean3.sh
  1. Run 1 bootnode and 3 nodes in tmux (bootnode and 3 nodes will run in separate tmux seesions):
sh run_chain.sh
  1. To see a node tmux sessions run:
tmux ls

To attach to a tmux node session, run:

tmux a -t node1
  1. To stop all nodes and kill created tmux sessions run:
sh kill_chain.sh

To change chain parameters please edit genesis.json. You can set there block time and prefunded accounts.

Unlocked and prefunded accounts:

  1. 0xb47f736b9b15dcc888ab790c38a6ad930217cbee

Private key: 0xa1e2b995399b0fae339315fd0aa91fbe57a34e5c6d93aa2266f8f6252a2db7bb

  1. 0x01665a4eb869efbf3af991e0b791d5347718a49d

Private key: 0xae5b69873fe9b6160df1175fb929cc95302396d1deecf186d1df70c70145727e

  1. 0x3833067356d624e36fa8cfaf208e97263f3e0703

Private key: 0x0bbc7f6112ff481ffbad0b32b9251004dac6b7b7742629e671bcb2b1c9c216bf

Open ports:

  1. RPC 127.0.0.1:8545
  2. Websockets 127.0.0.1:8546

clique's People

Contributors

pavelkrolevets avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

truongdk

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.