- 28 Jul, 2017 1 commit
-
-
Jason Yellick authored
The configtx code uses an 'append(...)' against a slice, and records the new slice address when computing the config map. Through sheer dumb luck, this code works for config groups which are only nested 2 levels deep, because the append call triggers a true new memory allocation. However, for config groups 3 levels deep (such as consortium groups), the append call actually re-uses the underlying memory for the slice. This causes the path to be corrupted internally for the consortium group items, and cause the wrong policy to be resolved when checking for a policy which has been specified relatively. This fix manually allocates new memory, copies it, and then appends the element. Change-Id: I0f4df619e006cdfebba60173156bda597d42a544 Signed-off-by:
Jason Yellick <jyellick@us.ibm.com>
-
- 26 Apr, 2017 1 commit
-
-
Jason Yellick authored
The configtxgen tool currently only prints the organizations in the channel creation configtx. This is not enough information for an admin to decide whether to sign or not. This CR makes the configtx printing much verbose, including the read set, write set, and computes the delta set for easy identification of non-overlap between the read and write sets. Change-Id: I3f9bfc2839ec595b1f2fc9a0cb149797ed4f862b Signed-off-by:
Jason Yellick <jyellick@us.ibm.com> Signed-off-by:
Kostas Christidis <kostas@christidis.io>
-
- 28 Mar, 2017 1 commit
-
-
Baohua Yang authored
Existing `make linter` will miss the accesscontrol and common source code directory. This patchset fix the missing and the linter checking problem in the missed paths. This patchset fixes FAB-2902. https://jira.hyperledger.org/browse/FAB-2902 Change-Id: I504b856441642a0e12ed3fc7d1bb20b90cd1358c Signed-off-by:
Baohua Yang <baohyang@cn.ibm.com>
-
- 14 Feb, 2017 2 commits
-
-
Jason Yellick authored
https://jira.hyperledger.org/browse/FAB-2201 The configtx code currently shortcuts by assuming that the writeset contains exactly the entire config. In order to support partial updates, this writeset should be overlayed on top of the existing config, then transformed back into a new config. This CR still depends on the writeset containing the entire config, but, readies for the conversion to a partial writeset. Change-Id: I35a71a02437865abe4178c47adfb7c5479b86a22 Signed-off-by:
Jason Yellick <jyellick@us.ibm.com>
-
Jason Yellick authored
https://jira.hyperledger.org/browse/FAB-2197 The configtx processing currently performs validation while applying configuration. In order to split this process, the config map construction will need to be used in two different code paths, so this CR factors it out. Change-Id: Ib230c3f363d490fb89b83fcd64bf2c9ec4fc67a4 Signed-off-by:
Jason Yellick <jyellick@us.ibm.com>
-