-
Notifications
You must be signed in to change notification settings - Fork 515
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-4643] NodeSDK - Work with the configtxlator
Creates a new test case and supporting artifacts to run a create and update flow using the new tool 'configtxlator'. Demonstrates when and how to call the tool when using the NodeSDK. Change-Id: Ifd2128fd263e179061e4bb2a2b7e844972ec0302 Signed-off-by: Bret Harrison <[email protected]>
- Loading branch information
Showing
3 changed files
with
802 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"channel_id": "mychannelator", | ||
"read_set": { | ||
"groups": { | ||
"Application": { | ||
"groups": { | ||
"Org1MSP": {}, | ||
"Org2MSP": {} | ||
} | ||
} | ||
}, | ||
"values": { | ||
"Consortium": { | ||
"value": { | ||
"name": "SampleConsortium" | ||
} | ||
} | ||
} | ||
}, | ||
"write_set": { | ||
"groups": { | ||
"Application": { | ||
"groups": { | ||
"Org1MSP": {}, | ||
"Org2MSP": {} | ||
}, | ||
"mod_policy": "Admins", | ||
"policies": { | ||
"Admins": { | ||
"policy": { | ||
"type": 3, | ||
"value": { | ||
"rule": "MAJORITY", | ||
"sub_policy": "Admins" | ||
} | ||
} | ||
}, | ||
"Readers": { | ||
"policy": { | ||
"type": 3, | ||
"value": { | ||
"sub_policy": "Readers" | ||
} | ||
} | ||
}, | ||
"Writers": { | ||
"policy": { | ||
"type": 3, | ||
"value": { | ||
"sub_policy": "Writers" | ||
} | ||
} | ||
} | ||
}, | ||
"version": "1" | ||
} | ||
}, | ||
"values": { | ||
"Consortium": { | ||
"value": { | ||
"name": "SampleConsortium" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.