Coder Social home page Coder Social logo

Comments (9)

maheshwarishikha avatar maheshwarishikha commented on August 16, 2024 2

@HDBISG , adding more org and peers is part of setting up network. You need to update configuration files available at https://github.com/IBM/blockchain-application-using-fabric-java-sdk/tree/master/network appropriately.

Generate artifacts as per your modified config files and setup network. And yes, you can change peer name.

Hope it will help. Thanks.

from blockchain-application-using-fabric-java-sdk.

HDBISG avatar HDBISG commented on August 16, 2024 1

Thanks reply!
let me try it this week and next week.

from blockchain-application-using-fabric-java-sdk.

HDBISG avatar HDBISG commented on August 16, 2024

@maheshwarishikha
The change container name is easy, I changed the container_name at docker-compose.yml.

But when I create a new peer. I can not find the folder like peer2.org1.example.com.
How to set volumes for new peer in docker-compose.yml like - ../network_resources/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/fabric/msp

from blockchain-application-using-fabric-java-sdk.

HDBISG avatar HDBISG commented on August 16, 2024

May I ask what is the purpose of the files under network_resources?
How to generate files at folder network_resources?

from blockchain-application-using-fabric-java-sdk.

HDBISG avatar HDBISG commented on August 16, 2024

@maheshwarishikha
The change container name is easy, I changed the container_name at docker-compose.yml.

But when I create a new peer. I can not find the folder like peer2.org1.example.com.
How to set volumes for new peer in docker-compose.yml like - ../network_resources/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/fabric/msp

If I create new peer, I need to change DeployInstantiateChaincode.java and CreateChannel.java to join the new peer to an organization, yes?

from blockchain-application-using-fabric-java-sdk.

maheshwarishikha avatar maheshwarishikha commented on August 16, 2024

@maheshwarishikha
The change container name is easy, I changed the container_name at docker-compose.yml.

But when I create a new peer. I can not find the folder like peer2.org1.example.com.
How to set volumes for new peer in docker-compose.yml like - ../network_resources/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/fabric/msp

You need to create that using utilities.

from blockchain-application-using-fabric-java-sdk.

maheshwarishikha avatar maheshwarishikha commented on August 16, 2024

May I ask what is the purpose of the files under network_resources?
How to generate files at folder network_resources?

network_resources are the artifacts generated which has certificates and channel configuration for the network identities. This is the first step - one has to perform while setting up the network. For the ease, in this repository I have generated already and provided directly for use.
For more details, please refer https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html
you need to download and use 'cryptogen' and configtxgen' utility.

from blockchain-application-using-fabric-java-sdk.

maheshwarishikha avatar maheshwarishikha commented on August 16, 2024

@maheshwarishikha
The change container name is easy, I changed the container_name at docker-compose.yml.
But when I create a new peer. I can not find the folder like peer2.org1.example.com.
How to set volumes for new peer in docker-compose.yml like - ../network_resources/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/msp:/etc/hyperledger/fabric/msp

If I create new peer, I need to change DeployInstantiateChaincode.java and CreateChannel.java to join the new peer to an organization, yes?

yes, if you want that peer to join channel:)

from blockchain-application-using-fabric-java-sdk.

HDBISG avatar HDBISG commented on August 16, 2024

May I ask what is the purpose of the files under network_resources?
How to generate files at folder network_resources?

network_resources are the artifacts generated which has certificates and channel configuration for the network identities. This is the first step - one has to perform while setting up the network. For the ease, in this repository I have generated already and provided directly for use.
For more details, please refer https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html
you need to download and use 'cryptogen' and configtxgen' utility.

Thanks!
Let me try it!

from blockchain-application-using-fabric-java-sdk.

Related Issues (20)

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.