-
Notifications
You must be signed in to change notification settings - Fork 3
Note: about Fabric V2
Ross Tang edited this page Apr 10, 2020
·
1 revision
When upgrading to Fabric V2, there are a number of un-certain network behaviour. Below documents the adopted approaches and configurations related.
- the "eventstore" chaincode is given "AND" signature policy
- Originally, the collection profile can be single org, or multiple org. However, private data's collection profile requires single org; here adopt single org collection profile. In order to obtain sufficient endorsement, we set "discovery" to true, to be implemented by fabric-cqrs library.
- see tutorial about discovery
- in local Mac development,
asLocalhost
must be true. - in Github Action's create release workflow,
asLocalhost
must be false. - the
asLocalhost
is set true, based on NODE_ENV=production
- use implicit collection
- the "eventstore" chaincode is given "AND" signature policy
- the connection profile is single org/single peer. If changed to 2-org in connection profile, the SDK will attempt to endorse from them; and fail. Beside, be noted that "discovery" set false, to be implemented by fabric-cqrs library.
- (April 3) the fabric-ca-client does not seems to fully compatible with Fabric V2
- in "operator" package, we keep using "fabric-client@1.4.x" library in order to parse connection profile correctly; and hence getCertificateAuthority