Oracle Blockchain Platform
Oracle Blockchain Platform
Steps to create two (or more) organizations and to add them into a channel
and deploy chaincode on the channel.
2.After opening it, you will see option create blockchain platform, click it and
will see a pop-up window, fill the details and it will be your first organization
so you will select CREATE A NEW NETWORK.It will be Founder Organization.
3.After creating the founder organization we will create one more
organization by doing the same as the last step. The only difference will be
that this time we will select JOIN AN EXISTING NETWORK in the pop-up
screen. This will be our participant organization.
Here click on Service Console which will open the respective organization
console.
5.After opening service console of participant organization you’ll see screen
like this.
Steps are written there what you have to do next. We will also follow the
same step. This step will help organization to communicate with each other
by joining them into same channel.
You'll have to do this step only in participant organization for founder
organization many things will get created automatically.
Click on step 2 Export Certificate and click on export. You'll download the
organizations certificate on your local computer.
6.Go and open the service console for founder organization. And on the Nav
Bar select Network section.
7.Now you can see an option Add Organization, Click on it and upload the
participant organization certificate that we have downloaded in the last step.
9.Then go back to participant service console and there int the 3 rd step you
have to import this orderer settings that we have downloaded in last step.
Once this step is done you can see both organization together in the netwrok
section of both org.
10.When you go to nodes section on Founder org there you will see that all
the orderer status are up.
But at the same time when you go to participant org you’ll see that the
orderer status is “Created”.
11.Now we will update the status of the orderer of participant organisation
to Up.
For that we will go to options of that particular orderer and we will Export the
OSN(Orderer service nodes) settings.
It will download the OSN file in you local system.Then we have to go back to
Founder org and there we will a option ADD OSN we will select that and
upload the OSN setting that we have downloaded.
And after successfully uploading the OSN on founder org you will see there is
a tab of Export Network Config.we will select this and it will download the
Network config file on your local.
Then go back to participant org in the nodes section and go to the option of
that orderer from which we have downloaded the OSN settings, there you
will see option Import network config block click on that and upload the
network config block you have downloaded from founder org.
After uploading you will see the status of that particular orderer down, go to
the options again and there you will see START option click on that and it will
update the orderer status after few mins(if dont you will see the refresh
button on the screen itself click on that and it will update the status.)
Repeat this every step that we have done to update the status of particular
orderer.Repeat it for the remaining orderers.(Each an every step i.e Step 11).
12.When we created the founder org in the channels section you will see one
channel is already created by the system itself and its name is Default.
You’ll not see the same for the participant org.
For that will change the permission on the channel Default and give
permission to read/write for participant org. After doing this you’ll able to see
the channel on channel section of participant org too.
First for founder, go to the channel section and click on the channel name i.e.
Default for us. There you will see peer section and in that all the peer list will
be there and with that there will be check box, select one of them and it will
make it anchor peer.
We have to do the same for participant organisation but first we will join peer
to the channel. For that go to channel section in particpant org and go to the
options of the channel and there you will see the option join peer to the
channel, click on that and select the peers that you want add.
14.Now we will deploy the chaincode on the channel. For that we will go to
chaincode section of the founder org and there you will see the button i.e.
Deploy chaincode.
Pop-up window will appear select the Advanced Deployment after that fill all
the details like label, chaincode language and target peers and in that you will
also see upload chaincode option click on that and upload the chaincode of
yours and click on next.If the chaincode is error free and in the working
condition it will get uploaded successfully.
After successfully uploading you will move to second page and there also you
need to update details and if you need init then check the init required box.
After this you will be able to see the chaincode in the respective org.
Now will approve this chaincode from the participant side too and for that go
to participant org channels section and select the channel in that you will see
deployed chaincode section go to that and you will be able to see the same
chaincode that we have uploaded. The status for approve is NO for now. We
update it to approve.