-
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.
Back port 2023 - skip empty ledge and 2635 - RetrieveBlockByNumber (#…
…2648) * FAB-18276 Ch.Part.API: extractSystemChannel must skip empty ledger (#2023) - orderer/common/server/main.go extractSystemChannel() panics when it hits an empty ledger. - In addition this method is not covered with unit tests at all. - Remove some dead code. Signed-off-by: Yoav Tock <tock@il.ibm.com> Change-Id: Ie13156784d2ec600e3f97d34f20f6836b28f7662 * Added RetrieveBlockByNumber into blockledger (#2635) GetBlock is used for retrieving a block in ConfigBlockOrPanic which has overhead of Iterator. It is now simplified by exposing a BlockStore function RetrieveBlockByNumber. Signed-off-by: Parameswaran Selvam <parselva@in.ibm.com> Co-authored-by: Yoav Tock <tock@il.ibm.com>
- Loading branch information
Showing
12 changed files
with
404 additions
and
79 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.