This repository was archived by the owner on Mar 31, 2025. It is now read-only.
File tree 4 files changed +1272
-1457
lines changed
examples/net1/connection-profile
4 files changed +1272
-1457
lines changed Original file line number Diff line number Diff line change 39
39
"Org1MSP" : {
40
40
"mspid" : " Org1MSP" ,
41
41
"adminPrivateKey" : {
42
- "path" : " /fabric-path/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/Admin @org1.example.com/msp/keystore/priv_sk"
42
+ "path" : " /fabric-path/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/User1 @org1.example.com/msp/keystore/priv_sk"
43
43
},
44
44
"peers" : [" peer0.org1.example.com" ],
45
45
"signedCert" : {
46
- "path" : " /fabric-path/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/Admin @org1.example.com/msp/signcerts/Admin @org1.example.com-cert.pem"
46
+ "path" : " /fabric-path/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/User1 @org1.example.com/msp/signcerts/User1 @org1.example.com-cert.pem"
47
47
}
48
48
}
49
49
},
Original file line number Diff line number Diff line change @@ -339,17 +339,15 @@ export class FabricGateway {
339
339
if ( resultJson . chaincodes . length <= 0 ) {
340
340
resultJson = { chaincodes : [ ] , toJSON : null } ;
341
341
contract = network . getContract ( '_lifecycle' ) ;
342
- result = await contract . evaluateTransaction ( 'QueryInstalledChaincodes ' , '' ) ;
343
- const decodedReult = fabprotos . lifecycle . QueryInstalledChaincodesResult . decode (
342
+ result = await contract . evaluateTransaction ( 'QueryChaincodeDefinitions ' , '' ) ;
343
+ const decodedReult = fabprotos . lifecycle . QueryChaincodeDefinitionsResult . decode (
344
344
result
345
345
) ;
346
- for ( const cc of decodedReult . installed_chaincodes ) {
347
- logger . info ( '1:' , cc ) ;
348
- const ccInfo = cc . references [ channelName ] ;
349
- if ( ccInfo !== undefined ) {
350
- logger . info ( '2:' , ccInfo ) ;
351
- resultJson . chaincodes = concat ( resultJson . chaincodes , ccInfo . chaincodes ) ;
352
- }
346
+ for ( const cc of decodedReult . chaincode_definitions ) {
347
+ resultJson . chaincodes = concat ( resultJson . chaincodes , {
348
+ name : cc . name ,
349
+ version : cc . version
350
+ } ) ;
353
351
}
354
352
}
355
353
logger . debug ( 'queryInstantiatedChaincodes' , resultJson ) ;
Original file line number Diff line number Diff line change 29
29
"Org1MSP" : {
30
30
"mspid" : " Org1MSP" ,
31
31
"adminPrivateKey" : {
32
- "path" : " /tmp/crypto/peerOrganizations/org1.example.com/users/Admin @org1.example.com/msp/keystore/priv_sk"
32
+ "path" : " /tmp/crypto/peerOrganizations/org1.example.com/users/User1 @org1.example.com/msp/keystore/priv_sk"
33
33
},
34
34
"peers" : [" peer0.org1.example.com" ],
35
35
"signedCert" : {
36
- "path" : " /tmp/crypto/peerOrganizations/org1.example.com/users/Admin @org1.example.com/msp/signcerts/Admin @org1.example.com-cert.pem"
36
+ "path" : " /tmp/crypto/peerOrganizations/org1.example.com/users/User1 @org1.example.com/msp/signcerts/User1 @org1.example.com-cert.pem"
37
37
}
38
38
}
39
39
},
You can’t perform that action at this time.
0 commit comments