March 2019
Intermediate to advanced
636 pages
27h 50m
English
Our original transaction endorsement policy required a member of each of the 4 organizations to endorse (sign) a chaincode invocation transaction. Now that we have added a new organization, we must update that policy to require a signature from a member of each of the 5 organizations. In the middleware folder, this new policy is defined in constants.js as follows:
var FIVE_ORG_MEMBERS_AND_ADMIN = [{ role: { name: 'member', mspId: 'ExporterOrgMSP' } }, { role: { name: 'member', mspId: 'ExportingEntityOrgMSP' } }, { role: { name: 'member', mspId: 'ImporterOrgMSP' } }, { role: { name: 'member', mspId: 'CarrierOrgMSP' } }, { role: { name: 'member', mspId: 'RegulatorOrgMSP' } }, { role: { name: 'admin', mspId: 'TradeOrdererMSP' ...Read now
Unlock full access