Skip to content

Instantly share code, notes, and snippets.

@siddjain
Created November 16, 2018 00:40
Show Gist options
  • Save siddjain/961c74aa7680c0b0f1e2beb7093f7604 to your computer and use it in GitHub Desktop.
Save siddjain/961c74aa7680c0b0f1e2beb7093f7604 to your computer and use it in GitHub Desktop.
[2018-11-15 22:11:42.917] [DEBUG] SampleWebApp - ------>>>>>> new request for /channels/mychannel/chaincodes
[2018-11-15 22:11:42.919] [DEBUG] SampleWebApp - Decoded from JWT token: username - Jim, orgname - Org1
[2018-11-15 22:11:42.920] [DEBUG] SampleWebApp - ==================== INSTANTIATE CHAINCODE ==================
[2018-11-15 22:11:42.920] [DEBUG] SampleWebApp - peers : peer1.org1.example.com
[2018-11-15 22:11:42.921] [DEBUG] SampleWebApp - channelName : mychannel
[2018-11-15 22:11:42.921] [DEBUG] SampleWebApp - chaincodeName : mycc
[2018-11-15 22:11:42.921] [DEBUG] SampleWebApp - chaincodeVersion : v0
[2018-11-15 22:11:42.921] [DEBUG] SampleWebApp - chaincodeType : node
[2018-11-15 22:11:42.921] [DEBUG] SampleWebApp - fcn : undefined
[2018-11-15 22:11:42.922] [DEBUG] SampleWebApp - args : a,100,b,200
[2018-11-15 22:11:42.922] [DEBUG] instantiate-chaincode -
============ Instantiate chaincode on channel mychannel ============
[2018-11-15 22:11:42.923] [DEBUG] Helper - getClientForOrg - ****** START Org1 Jim
[2018-11-15 22:11:42.931] [DEBUG] Helper - [NetworkConfig101.js]: constructor, network_config: {"name":"balance-transfer","x-type":"hlfv1","description":"Balance Transfer Network","version":"1.0","channels":{"mychannel":{"orderers":["orderer.example.com"],"peers":{"peer0.org1.example.com":{"endorsingPeer":true,"chaincodeQuery":true,"ledgerQuery":true,"eventSource":true},"peer1.org1.example.com":{"endorsingPeer":false,"chaincodeQuery":true,"ledgerQuery":true,"eventSource":false},"peer0.org2.example.com":{"endorsingPeer":true,"chaincodeQuery":true,"ledgerQuery":true,"eventSource":true},"peer1.org2.example.com":{"endorsingPeer":false,"chaincodeQuery":true,"ledgerQuery":true,"eventSource":false}},"chaincodes":["mycc:v0"]}},"organizations":{"Org1":{"mspid":"Org1MSP","peers":["peer0.org1.example.com","peer1.org1.example.com"],"certificateAuthorities":["ca-org1"],"adminPrivateKey":{"path":"artifacts/channel/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore/5890f0061619c06fb29dea8cb304edecc020fe63f41a6db109f1e227cc1cb2a8_sk"},"signedCert":{"path":"artifacts/channel/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts/Admin@org1.example.com-cert.pem"}},"Org2":{"mspid":"Org2MSP","peers":["peer0.org2.example.com","peer1.org2.example.com"],"certificateAuthorities":["ca-org2"],"adminPrivateKey":{"path":"artifacts/channel/crypto-config/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/keystore/1995b11d6573ed3be52fcd7a5fa477bc0f183e1f5f398c8281d0ce7c2c75a076_sk"},"signedCert":{"path":"artifacts/channel/crypto-config/peerOrganizations/org2.example.com/users/Admin@org2.example.com/msp/signcerts/Admin@org2.example.com-cert.pem"}}},"orderers":{"orderer.example.com":{"url":"grpcs://localhost:7050","grpcOptions":{"ssl-target-name-override":"orderer.example.com"},"tlsCACerts":{"path":"artifacts/channel/crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/ca.crt"}}},"peers":{"peer0.org1.example.com":{"url":"grpcs://localhost:7051","grpcOptions":{"ssl-target-name-override":"peer0.org1.example.com"},"tlsCACerts":{"path":"artifacts/channel/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt"}},"peer1.org1.example.com":{"url":"grpcs://localhost:7056","grpcOptions":{"ssl-target-name-override":"peer1.org1.example.com"},"tlsCACerts":{"path":"artifacts/channel/crypto-config/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/ca.crt"}},"peer0.org2.example.com":{"url":"grpcs://localhost:8051","grpcOptions":{"ssl-target-name-override":"peer0.org2.example.com"},"tlsCACerts":{"path":"artifacts/channel/crypto-config/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/ca.crt"}},"peer1.org2.example.com":{"url":"grpcs://localhost:8056","eventUrl":"grpcs://localhost:8058","grpcOptions":{"ssl-target-name-override":"peer1.org2.example.com"},"tlsCACerts":{"path":"artifacts/channel/crypto-config/peerOrganizations/org2.example.com/peers/peer1.org2.example.com/tls/ca.crt"}}},"certificateAuthorities":{"ca-org1":{"url":"https://localhost:7054","httpOptions":{"verify":false},"tlsCACerts":{"path":"artifacts/channel/crypto-config/peerOrganizations/org1.example.com/ca/ca.org1.example.com-cert.pem"},"registrar":[{"enrollId":"admin","enrollSecret":"adminpw"}],"caName":"ca-org1"},"ca-org2":{"url":"https://localhost:8054","httpOptions":{"verify":false},"tlsCACerts":{"path":"artifacts/channel/crypto-config/peerOrganizations/org2.example.com/ca/ca.org2.example.com-cert.pem"},"registrar":[{"enrollId":"admin","enrollSecret":"adminpw"}],"caName":"ca-org2"}}}
[2018-11-15 22:11:42.934] [DEBUG] Helper - [NetworkConfig101.js]: constructor, network_config: {"name":"balance-transfer-org1","x-type":"hlfv1","description":"Balance Transfer Network - client definition for Org1","version":"1.0","client":{"organization":"Org1","credentialStore":{"path":"./fabric-client-kv-org1","cryptoStore":{"path":"/tmp/fabric-client-kv-org1"},"wallet":"wallet-name"}}}
[2018-11-15 22:11:42.934] [DEBUG] Helper - [NetworkConfig101.js]: mergeSettings - additions start
[2018-11-15 22:11:42.934] [DEBUG] Helper - [NetworkConfig101.js]: getOrganization - name Org1
[2018-11-15 22:11:42.934] [DEBUG] Helper - [Organization.js]: Organization.const
[2018-11-15 22:11:42.935] [DEBUG] Helper - [NetworkConfig101.js]: getCertificateAuthority - name ca-org1
[2018-11-15 22:11:42.935] [DEBUG] Helper - [CertificateAuthority.js]: CertificateAuthority.const
[2018-11-15 22:11:42.935] [DEBUG] Helper - [crypto_ecdsa_aes]: Hash algorithm: SHA2, hash output size: 256
[2018-11-15 22:11:42.936] [DEBUG] Helper - [crypto_ecdsa_aes]: importKey - start
[2018-11-15 22:11:42.936] [DEBUG] Helper - [crypto_ecdsa_aes]: importKey - have the key [Circular]
[2018-11-15 22:11:42.936] [DEBUG] Helper - [crypto_ecdsa_aes]: importKey - start
[2018-11-15 22:11:42.937] [DEBUG] Helper - [crypto_ecdsa_aes]: importKey - have the key [Circular]
[2018-11-15 22:11:42.938] [DEBUG] Helper - [NetworkConfig101.js]: getOrganization - name Org1
[2018-11-15 22:11:42.938] [DEBUG] Helper - [Organization.js]: Organization.const
[2018-11-15 22:11:42.938] [DEBUG] Helper - [NetworkConfig101.js]: getCertificateAuthority - name ca-org1
[2018-11-15 22:11:42.938] [DEBUG] Helper - [CertificateAuthority.js]: CertificateAuthority.const
[2018-11-15 22:11:42.939] [DEBUG] Helper - [FileKeyValueStore.js]: constructor { options:
{ path: '/home/siddjain/fabric-samples-v13/balance-transfer/fabric-client-kv-org1',
wallet: 'wallet-name',
cryptoStore: { path: '/tmp/fabric-client-kv-org1' } } }
[2018-11-15 22:11:42.940] [DEBUG] Helper - [crypto_ecdsa_aes]: Hash algorithm: SHA2, hash output size: 256
[2018-11-15 22:11:42.940] [DEBUG] Helper - [utils.CryptoKeyStore]: CryptoKeyStore, constructor - start
[2018-11-15 22:11:42.941] [DEBUG] Helper - [utils.CryptoKeyStore]: constructor, no super class specified, using config: fabric-client/lib/impl/FileKeyValueStore.js
[2018-11-15 22:11:42.941] [DEBUG] Helper - [FileKeyValueStore.js]: getValue { key: 'Jim' }
[2018-11-15 22:11:42.942] [DEBUG] Helper - [crypto_ecdsa_aes]: importKey - start
[2018-11-15 22:11:42.943] [DEBUG] Helper - [crypto_ecdsa_aes]: importKey - have the key [Circular]
[2018-11-15 22:11:42.944] [DEBUG] Helper - [utils.CryptoKeyStore]: This class requires a CryptoKeyStore to save keys, using the store: {"opts":{"path":"/tmp/fabric-client-kv-org1"}}
[2018-11-15 22:11:42.944] [DEBUG] Helper - [FileKeyValueStore.js]: constructor { options: { path: '/tmp/fabric-client-kv-org1' } }
[2018-11-15 22:11:42.945] [DEBUG] Helper - [utils.CryptoKeyStore]: _getKeyStore returning ks
[2018-11-15 22:11:42.945] [DEBUG] Helper - [FileKeyValueStore.js]: getValue { key: 'e563ed671f93d32027c0df9db382cbba9bdd91a725a431b883b37dd558b8ea81-priv' }
[2018-11-15 22:11:42.947] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param X: df5a83620c63749a14664a90c2b6809223a7a59c7cce7c76a3ecd0e412ec80b2
[2018-11-15 22:11:42.948] [DEBUG] Helper - [ecdsa/key.js]: ECDSA curve param Y: 585e5dc91bb8977d694a60369023c4fa4e583ba976887b19dc9c226738117da2
[2018-11-15 22:11:42.948] [DEBUG] Helper - User Jim was found to be registered and enrolled
[2018-11-15 22:11:42.948] [DEBUG] Helper - getClientForOrg - ****** END Org1 Jim
[2018-11-15 22:11:42.948] [DEBUG] instantiate-chaincode - Successfully got the fabric client for the organization "Org1"
[2018-11-15 22:11:42.949] [DEBUG] Helper - [NetworkConfig101.js]: getChannel - name mychannel
[2018-11-15 22:11:42.950] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer0.org1.example.com, channel_org: undefined
[2018-11-15 22:11:42.953] [DEBUG] Helper - [crypto_ecdsa_aes]: Hash algorithm: SHA2, hash output size: 256
[2018-11-15 22:11:43.123] [DEBUG] Helper - [NetworkConfig101.js]: getOrganization - name Org1
[2018-11-15 22:11:43.124] [DEBUG] Helper - [Organization.js]: Organization.const
[2018-11-15 22:11:43.124] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer0.org1.example.com, channel_org: undefined
[2018-11-15 22:11:43.124] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer1.org1.example.com, channel_org: undefined
[2018-11-15 22:11:43.127] [DEBUG] Helper - [NetworkConfig101.js]: getCertificateAuthority - name ca-org1
[2018-11-15 22:11:43.127] [DEBUG] Helper - [CertificateAuthority.js]: CertificateAuthority.const
[2018-11-15 22:11:43.127] [DEBUG] Helper - [NetworkConfig101.js]: getOrganization - name Org1
[2018-11-15 22:11:43.128] [DEBUG] Helper - [Organization.js]: Organization.const
[2018-11-15 22:11:43.128] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer0.org1.example.com, channel_org: undefined
[2018-11-15 22:11:43.129] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer1.org1.example.com, channel_org: undefined
[2018-11-15 22:11:43.129] [DEBUG] Helper - [NetworkConfig101.js]: getCertificateAuthority - name ca-org1
[2018-11-15 22:11:43.129] [DEBUG] Helper - [CertificateAuthority.js]: CertificateAuthority.const
[2018-11-15 22:11:43.130] [DEBUG] Helper - [NetworkConfig101.js]: _addPeersToChannel - peer0.org1.example.com - grpcs://localhost:7051
[2018-11-15 22:11:43.130] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer1.org1.example.com, channel_org: undefined
[2018-11-15 22:11:43.131] [DEBUG] Helper - [NetworkConfig101.js]: getOrganization - name Org1
[2018-11-15 22:11:43.131] [DEBUG] Helper - [Organization.js]: Organization.const
[2018-11-15 22:11:43.132] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer0.org1.example.com, channel_org: undefined
[2018-11-15 22:11:43.132] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer1.org1.example.com, channel_org: undefined
[2018-11-15 22:11:43.132] [DEBUG] Helper - [NetworkConfig101.js]: getCertificateAuthority - name ca-org1
[2018-11-15 22:11:43.133] [DEBUG] Helper - [CertificateAuthority.js]: CertificateAuthority.const
[2018-11-15 22:11:43.133] [DEBUG] Helper - [NetworkConfig101.js]: getOrganization - name Org1
[2018-11-15 22:11:43.134] [DEBUG] Helper - [Organization.js]: Organization.const
[2018-11-15 22:11:43.134] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer0.org1.example.com, channel_org: undefined
[2018-11-15 22:11:43.134] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer1.org1.example.com, channel_org: undefined
[2018-11-15 22:11:43.134] [DEBUG] Helper - [NetworkConfig101.js]: getCertificateAuthority - name ca-org1
[2018-11-15 22:11:43.135] [DEBUG] Helper - [CertificateAuthority.js]: CertificateAuthority.const
[2018-11-15 22:11:43.135] [DEBUG] Helper - [NetworkConfig101.js]: _addPeersToChannel - peer1.org1.example.com - grpcs://localhost:7056
[2018-11-15 22:11:43.135] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer0.org2.example.com, channel_org: undefined
[2018-11-15 22:11:43.139] [DEBUG] Helper - [NetworkConfig101.js]: getOrganization - name Org1
[2018-11-15 22:11:43.139] [DEBUG] Helper - [Organization.js]: Organization.const
[2018-11-15 22:11:43.139] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer0.org1.example.com, channel_org: undefined
[2018-11-15 22:11:43.140] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer1.org1.example.com, channel_org: undefined
[2018-11-15 22:11:43.140] [DEBUG] Helper - [NetworkConfig101.js]: getCertificateAuthority - name ca-org1
[2018-11-15 22:11:43.140] [DEBUG] Helper - [CertificateAuthority.js]: CertificateAuthority.const
[2018-11-15 22:11:43.141] [DEBUG] Helper - [NetworkConfig101.js]: getOrganization - name Org2
[2018-11-15 22:11:43.141] [DEBUG] Helper - [Organization.js]: Organization.const
[2018-11-15 22:11:43.141] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer0.org2.example.com, channel_org: undefined
[2018-11-15 22:11:43.142] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer1.org2.example.com, channel_org: undefined
[2018-11-15 22:11:43.145] [DEBUG] Helper - [NetworkConfig101.js]: getCertificateAuthority - name ca-org2
[2018-11-15 22:11:43.147] [DEBUG] Helper - [CertificateAuthority.js]: CertificateAuthority.const
[2018-11-15 22:11:43.151] [DEBUG] Helper - [NetworkConfig101.js]: getOrganization - name Org2
[2018-11-15 22:11:43.152] [DEBUG] Helper - [Organization.js]: Organization.const
[2018-11-15 22:11:43.152] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer0.org2.example.com, channel_org: undefined
[2018-11-15 22:11:43.152] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer1.org2.example.com, channel_org: undefined
[2018-11-15 22:11:43.153] [DEBUG] Helper - [NetworkConfig101.js]: getCertificateAuthority - name ca-org2
[2018-11-15 22:11:43.153] [DEBUG] Helper - [CertificateAuthority.js]: CertificateAuthority.const
[2018-11-15 22:11:43.153] [DEBUG] Helper - [NetworkConfig101.js]: _addPeersToChannel - peer0.org2.example.com - grpcs://localhost:8051
[2018-11-15 22:11:43.154] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer1.org2.example.com, channel_org: undefined
[2018-11-15 22:11:43.154] [DEBUG] Helper - [NetworkConfig101.js]: getOrganization - name Org1
[2018-11-15 22:11:43.154] [DEBUG] Helper - [Organization.js]: Organization.const
[2018-11-15 22:11:43.154] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer0.org1.example.com, channel_org: undefined
[2018-11-15 22:11:43.155] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer1.org1.example.com, channel_org: undefined
[2018-11-15 22:11:43.155] [DEBUG] Helper - [NetworkConfig101.js]: getCertificateAuthority - name ca-org1
[2018-11-15 22:11:43.155] [DEBUG] Helper - [CertificateAuthority.js]: CertificateAuthority.const
[2018-11-15 22:11:43.156] [DEBUG] Helper - [NetworkConfig101.js]: getOrganization - name Org2
[2018-11-15 22:11:43.156] [DEBUG] Helper - [Organization.js]: Organization.const
[2018-11-15 22:11:43.156] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer0.org2.example.com, channel_org: undefined
[2018-11-15 22:11:43.156] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer1.org2.example.com, channel_org: undefined
[2018-11-15 22:11:43.157] [DEBUG] Helper - [NetworkConfig101.js]: getCertificateAuthority - name ca-org2
[2018-11-15 22:11:43.157] [DEBUG] Helper - [CertificateAuthority.js]: CertificateAuthority.const
[2018-11-15 22:11:43.157] [DEBUG] Helper - [NetworkConfig101.js]: getOrganization - name Org2
[2018-11-15 22:11:43.157] [DEBUG] Helper - [Organization.js]: Organization.const
[2018-11-15 22:11:43.158] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer0.org2.example.com, channel_org: undefined
[2018-11-15 22:11:43.158] [DEBUG] Helper - [NetworkConfig101.js]: getPeer - name peer1.org2.example.com, channel_org: undefined
[2018-11-15 22:11:43.158] [DEBUG] Helper - [NetworkConfig101.js]: getCertificateAuthority - name ca-org2
[2018-11-15 22:11:43.159] [DEBUG] Helper - [CertificateAuthority.js]: CertificateAuthority.const
[2018-11-15 22:11:43.159] [DEBUG] Helper - [NetworkConfig101.js]: _addPeersToChannel - peer1.org2.example.com - grpcs://localhost:8056
[2018-11-15 22:11:43.160] [DEBUG] Helper - [NetworkConfig101.js]: getOrderer - name orderer.example.com
[2018-11-15 22:11:43.184] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature {
r: <BN: 23cab97961495be85d7c7c81270453822691f359c6e29d5ad75de2a0ef18111f>,
s: <BN: 1b49e3d0adbeb47ea1cdeb0397f50889d9e9567f9567b18d5204949b75d1ebb1>,
recoveryParam: 0 }
[2018-11-15 22:12:24.030] [INFO] instantiate-chaincode - instantiate proposal was good
[2018-11-15 22:12:24.030] [INFO] instantiate-chaincode - Successfully sent Proposal and received ProposalResponse: Status - 200, message - "", metadata - "
myccv0escc"vscc*(
Org1MSP
Org2MSP2D
������a��ЈXPb,�V�i���B��:e� *PI�w�jL5x6^�E=�)ˡF�� ��C55: NB:[dG`�]�g���S?sW�����CB,
Org1MSP
Org2MSP", endorsement signature: 0D GRD�>�}VV�u_�T3l��%����?V/ P���f���7������Vj/zǬ0�ia߱{
[2018-11-15 22:12:24.033] [DEBUG] instantiate-chaincode - found 1 eventhubs for this organization Org1
[2018-11-15 22:12:24.034] [DEBUG] instantiate-chaincode - instantiateEventPromise - setting up event
[2018-11-15 22:12:24.057] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature {
r: <BN: 6199794cc028040288339ddde84fe813295556d31a99cf7817ca9e6268b6702a>,
s: <BN: 2c6a1122dee3c53ee4437397b6295a3a0e35621f396e55fb8ed4c6527588beab>,
recoveryParam: 1 }
[2018-11-15 22:12:24.064] [DEBUG] Helper - [crypto_ecdsa_aes]: ecdsa signature: Signature {
r: <BN: 90f672439817a315fc5810b8797a37d51f7f3e886bb507fb209ed7d311de3515>,
s: <BN: 62726c70acb32b31a7f7beb5ecef8193e1721189a68ff19620638c8c327bb3a>,
recoveryParam: 0 }
[2018-11-15 22:12:26.463] [INFO] instantiate-chaincode - The chaincode instantiate transaction has been committed on peer localhost:7051
[2018-11-15 22:12:26.463] [INFO] instantiate-chaincode - Transaction 979eeb030e6adf9689f39163192fbb9bcba00e6942ef4d1ea6de10d982d234fe has status of VALID in blocl 1
[2018-11-15 22:12:26.464] [INFO] instantiate-chaincode - The chaincode instantiate transaction was valid.
[2018-11-15 22:12:26.464] [DEBUG] instantiate-chaincode - ------->>> R E S P O N S E : ["The chaincode instantiate transaction was valid.",{"status":"SUCCESS","info":""}]
[2018-11-15 22:12:26.465] [INFO] instantiate-chaincode - Successfully sent transaction to the orderer.
[2018-11-15 22:12:26.467] [DEBUG] instantiate-chaincode - Event results for event hub :localhost:7051
[2018-11-15 22:12:26.468] [DEBUG] instantiate-chaincode - The chaincode instantiate transaction was valid.
[2018-11-15 22:12:26.468] [INFO] instantiate-chaincode - Successfully instantiate chaincode in organization Org1 to the channel 'mychannel'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment