Comments (3)
I don't see you mention installing the packaged chaincode before approving. Check the Fabric documentation on chaincode lifecycle for the steps required and their order.
It's also worth checking that after the approval call in the Java API, you also submit the endorsed approval. It's not particularly readable but the integration tests do exercise the chaincode lifecycle API to successfully deploy chaincode:
The last thing to say is that the currently recommended approach for admin operations is to use the Fabric CLI commands. The Java API here works and should continue to work but is not being actively developed anymore. For business applications deployed to Fabric v2.4+, the recommended and supported application API is the Fabric Gateway client API. This does not include admin capability, including chaincode lifecycle.
from fabric-sdk-java.
I also have installed the package (I tried to check with peer lifecycle chaincode queryinstalled and it prints out fine)
using the peer command would be a little bit of a mess on our cluster, that's why I'm trying to use this SDK to install chaincodes.
from fabric-sdk-java.
it might be related to the signing policy. I can't really find any documentation on this, are these equivalent?
OR('Org1MSP.peer')
identities: # list roles to be used in the policy
peer: {"role": {"name": "peer", "mspId": "Org1MSP"}} # role member in org with mspid Org1MSP
policy: # the policy .. could have been flat but show grouping.
1-of: # signed by one of these groups can be <n>-of where <n> is any digit 2-of, 3-of etc..
- signed-by: "peer"
from fabric-sdk-java.
Related Issues (20)
- Getting block time exceeded 5 seconds for channel mychannel when peer join channel HOT 4
- New version release date with Log4j vulnerability managed HOT 1
- Jndi log4j vulnerability in fabric-sdk-java v2.1.1? HOT 1
- log4j2 issue HOT 1
- NetworkConfig.getPrivateKeyFromString read private key exception HOT 2
- Customization in the number of connections to hlf peer is unavailable and uses large number of threads HOT 2
- log4j update dependency HOT 2
- log4j Security Vulability CVE-2021-44832 Security Issue
- GeneratedMessageV3.isStringEmpty NoSuchMethodError issue HOT 3
- Separate logging of warnings and errors in channel.sendTransaction() method in low level java SDK
- Comment about `SERVICE_DISCOVERY` is incorrect and same with `EVENT_SOURCE`. HOT 1
- virtual machines entropy document links is broken
- Maven repository link is wrong
- Fabric read the docs: Chaincode for Operators is broken
- release-2.2 mutual tls config key and peer property key not matching HOT 5
- Service Discovery bug on insufficient endorsements HOT 2
- fanric-java-sdk how to use Taking ledger snapshots and using them to join channels HOT 2
- Intermittent test failure: chaincode event ordering
- Vulnerable dependencies HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fabric-sdk-java.