-
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-17911 Ch.Part.API: join system channel (#1884)
An orderer without channels joins the system channel. It must be a member of the system channel cluster as well. 1. The join-block is saved to the join-block filerepo. 2. If the join-block.number=0, it is appended to the ledger. 3. A degenerate ChainSupport is created, holding an inactive.Chain within, and set into the chains map and the "systemChannel" field. This is done to prevent further invocations to the API from issuing conflicting commands, as they will find a system channel there. 4. Only "List" and "Remove" will be accepted. Transactions sent to the system channel will be rejected. 5. As soon as the Join REST call returns successfully the orderer should be restarted. 6. Upon restart, (boostrapMethod="none") 'Main' will look for a system channel join block, and if it finds one, will treat it as a bootstrap block. 7. Normal boot then resumes, and the orderer will on-board (replicate) the system channel and any channel referred by it, just as if we had boostrapMethod="file" with the same block as bootstrap block. 8. After replication ends, the system channel join block is removed. 9. The orderer now operates in the "legacy" system channel mode. Signed-off-by: Yoav Tock <tock@il.ibm.com> Change-Id: Ief7511de61eccc876f83157315bca98f9e30397c
- Loading branch information
Showing
9 changed files
with
481 additions
and
41 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
Oops, something went wrong.