1. The new org has to be added into an application channel.
2. Once the new org is part of the application channel, the new org admin can add its peers to the channel by following the below steps:
a). Use peer channel fetch oldest to get the oldest block which is the genesis block
b). Then use the genesis block to join the peer.
Thursday, February 27, 2020
Wednesday, February 26, 2020
Disable ubuntu daily update service
sudo apt-get remove unattended-upgrades
sudo systemctl stop apt-daily.timer
sudo systemctl disable apt-daily.timer
sudo systemctl disable apt-daily.service
sudo systemctl daemon-reload
Set static IP for ubuntu servers
Edit the file in /etc/netplan/50-cloud-init.yaml file like the following
network:
ethernets:
enp0s3:
dhcp4: false
addresses: [192.168.56.101/24]
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
enp0s8:
addresses: []
dhcp4: true
optional: true
version: 2
network:
ethernets:
enp0s3:
dhcp4: false
addresses: [192.168.56.101/24]
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
enp0s8:
addresses: []
dhcp4: true
optional: true
version: 2
Thursday, February 20, 2020
Using hyperledger discover service
# This assumes the following information available
# Discover peers
1. a user's private key, public key and its belonging org mspid
2. a peer's tlsca cert and its endpoint
# Produce the conf.yaml file based on the information provided
discover --configFile conf.yaml --peerTLSCA ca.crt \
--userKey priv_sk --userCert admin.pem --MSP org0examplecom saveConfig
# Discover peers
discover --configFile conf.yaml peers --channel mychannel \
--server peer1.org0.example.com:7051
# Discover config
discover --configFile conf.yaml config --channel mychannel \
--server peer1.org0.example.com:7051
# Discover endorsers for a chaincode
discover --configFile conf.yaml endorsers --channel mychannel \
--chaincode simple --server peer1.org0.example.com:7051
# Choose not to use config file, pass necessary info as command line parameters
discover peers --peerTLSCA ca.crt --userKey priv_sk --userCert admin.pem \
--MSP org0examplecom --channel mychannel --server peer1.org0.example.com:7051
discover config --peerTLSCA ca.crt --userKey priv_sk --userCert admin.pem \
--MSP org0examplecom --channel mychannel --server peer1.org0.example.com:7051
discover endorsers --peerTLSCA ca.crt --userKey priv_sk --userCert admin.pem \
--MSP org0examplecom --channel mychannel --server peer1.org0.example.com:7051 \
--chaincode simple
Subscribe to:
Posts (Atom)