Reputation: 56
I am looking to create the Genesis Block and the channel config transaction using the Java SDK in Hyperledger Fabric. I know that we can use configtxgen to do this, but I am trying to avoid that since we have a requirement to create channels by the peer organisation admins from the UI
So, the way I see it, there is only one option available at the moment - which is to use ProcessBuilder to create genesis block and channel config transaction. Then continue using the SDK to create the channel, join the peers etc..
Does anyone have any experience with doing this natively using the Java SDK?
Upvotes: 0
Views: 248
Reputation: 415
A better way to do this is to use the option to generate the Genesis block provisionally. Instead of providing a Genesis and Config Block file, we can tell the Orderer that generate the Genesis block using the provided configtx.yaml when the network is started.
Place(Volume Map) the configtx.yaml file at this location in the orderer container /etc/hyperledger/fabric/configtx.yaml and set the environment variable given below in docker-compose for each Orderer.
- ORDERER_GENERAL_GENESISMETHOD=provisional
This works perfectly fine with HLF v1.4.2 but I think this has been removed in v2.0.
UPDATE: Yes it has been removed from v2.0 JiraIssue
Upvotes: 0