GithubHelp home page GithubHelp logo

salmandabbakuti / hlf-3h2c Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 47.95 MB

3host 2channel fabric network

License: Apache License 2.0

Shell 100.00%
hyperledger-fabric blockchain hyperledger-fabric-network docker chaincode blockchain-technology

hlf-3h2c's Introduction

hlf-3h2c

3 host and 2 channel fabric network

Channel Creation peer0 org1
docker exec -e "CORE_PEER_MSPCONFIGPATH=/var/hyperledger/users/[email protected]/msp" peer0.org1.example.com peer channel create -o orderer.example.com:7050 -c channelall -f /var/hyperledger/configs/channelall.tx

Joining channel peer0 org1

docker exec -e "CORE_PEER_MSPCONFIGPATH=/var/hyperledger/users/[email protected]/msp" peer0.org1.example.com peer channel join -b channelall.block

Joining other two peers

docker exec -e "CORE_PEER_MSPCONFIGPATH=/var/hyperledger/users/[email protected]/msp" peer0.org2.example.com peer channel join -b channelall.block

docker exec -e "CORE_PEER_MSPCONFIGPATH=/var/hyperledger/users/[email protected]/msp" peer0.org3.example.com peer channel join -b channelall.block

Copying channel block to container

# copy mychannel.block from peer0 to org1 host
docker cp peer0.org1.example.com:/mychannel.block .

# copy mychannel.block to org2 and org3
docker cp mychannel.block peer0.org2.example.com:/mychannel.block
docker cp mychannel.block peer0.org3.example.com:/mychannel.block





hlf-3h2c's People

Contributors

salman669 avatar salmandabbakuti avatar

Stargazers

 avatar

Watchers

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