Giter VIP home page Giter VIP logo

blockchain's Introduction

https://besu.hyperledger.org/private-networks/tutorials/qbft

Terminal > cd Node-1 > besu --data-path=data --genesis-file=../genesis.json --rpc-http-enabled --rpc-http-api=ETH,NET,QBFT --host-allowlist="*" --rpc-http-cors-origins="all"

Retrieve the enode for Node-1 enode://739a537732a1f15d369f2c48071e31d573964670921db9e47b14d44aa2c81aa21b57600bb2d7ee4dd9204c81931aa8819f6f0d1405e9f4e32a7a0f524562e58a@127.0.0.1:30303

New Terminal > cd Node-2 > besu --data-path=data --genesis-file=/Users/weihan/Desktop/Blockchain/genesis.json --bootnodes=enode://739a537732a1f15d369f2c48071e31d573964670921db9e47b14d44aa2c81aa21b57600bb2d7ee4dd9204c81931aa8819f6f0d1405e9f4e32a7a0f524562e58a@127.0.0.1:30303 --p2p-port=30304 --rpc-http-enabled --rpc-http-api=ETH,NET,QBFT --host-allowlist="*" --rpc-http-cors-origins="all" --rpc-http-port=8546

New Terminal > cd Node-3 > besu --data-path=data --genesis-file=/Users/weihan/Desktop/Blockchain/genesis.json --bootnodes=enode://739a537732a1f15d369f2c48071e31d573964670921db9e47b14d44aa2c81aa21b57600bb2d7ee4dd9204c81931aa8819f6f0d1405e9f4e32a7a0f524562e58a@127.0.0.1:30303 --p2p-port=30305 --rpc-http-enabled --rpc-http-api=ETH,NET,QBFT --host-allowlist="*" --rpc-http-cors-origins="all" --rpc-http-port=8547

New Terminal > cd Node-4 > besu --data-path=data --genesis-file=/Users/weihan/Desktop/Blockchain/genesis.json --bootnodes=enode://739a537732a1f15d369f2c48071e31d573964670921db9e47b14d44aa2c81aa21b57600bb2d7ee4dd9204c81931aa8819f6f0d1405e9f4e32a7a0f524562e58a@127.0.0.1:30303 --p2p-port=30306 --rpc-http-enabled --rpc-http-api=ETH,NET,QBFT --host-allowlist="*" --rpc-http-cors-origins="all" --rpc-http-port=8548

Confirm the private network is working > curl -X POST --data '{"jsonrpc":"2.0","method":"qbft_getValidatorsByBlockNumber","params":["latest"], "id":1}' localhost:8545

{ "jsonrpc":"2.0", "id":1, "result":[ "0x10165df0299415ff30e47dd079d8e406745c35ec", "0xa77fa22ab0daa4ed54e055d8f2c3a3eb4e41760c", "0xdd9c64f795c60c0fd80a9b92b4494a571b016593", "0xff36fc9d7a0f0285cd0f088163d94270f487e85f" ] }

blockchain's People

Contributors

xypheral avatar

Watchers

 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.