-
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-2576] Mock committer ledger height
The reason mockLedgerInfo should be initialized with 1 instead of 0, is because the state transfer expected to get the ledger with at least one block committed. Which is the case in reality, since to create a ledger you need to receive genesis block and genesis block committed right away. Without this assumption since blocks sequence uses uint64 there is an overflow to -1 which cause anti entropy procedure to request big bulk of blocks and extensive memory footprint. Change-Id: Id836b20d8be474a5fef492d3082f5878e87aa738 Signed-off-by: Gennady Laventman <gennady@il.ibm.com> Signed-off-by: Artem Barger <bartem@il.ibm.com>
- Loading branch information
1 parent
ed7ed80
commit dc7d4d4
Showing
1 changed file
with
7 additions
and
11 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