-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-6080] Fix unset mod_policy in channel create
For all channels created by the v1.0.x orderer, the Channel group's mod_policy was left unset. Although the channel is functional, it is not possible to add config elements to the channel level. Although it would be nice to simply change this behavior in v1.1, unfortunately, because the v1.0 orderers validate that the config computed for the new channel is correct, based on this flawed generation scheme, if a v1.1 accepts a channel creation tx and generates a new channel config, the v1.0 orderer would see this new channel config as flawed (because it tries to validate it using the old broken logic) and reject it. The same thing would occur if a v1.0 orderer generated the flawed channel definition, causing the v1.1 orderer to reject it during the validation phase. This could allow the same channel name when referenced on different orderers to have different backing blockchains and is not acceptable. Therefore, this fix uses the newly developed capabilities flags to determine whether the incompatible behavior should be enabled for an orderer or not. Change-Id: I498ac5891eddeef0bc81a928ab8af7fa1ff8d798 Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
- Loading branch information
Jason Yellick
committed
Oct 3, 2017
1 parent
a50bd08
commit 361d609
Showing
6 changed files
with
50 additions
and
2 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
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
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
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
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
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