-
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.
Reset timer when cutting a block via timeout
- Fixes: https://jira.hyperledger.org/browse/FAB-899 - Introduces a BroadcastConsecutiveIncompleteBatches test that failed before this fix. - Lowers the BatchTimeout to 500 milliseconds, so as to speed up the execution of the time-based unit tests in the package (drop from 7 to 3 seconds). - Moves the timer.Reset() calls before the sendBlock() ones to make the timing more accurate. Thanks to Bishop Brock for reporting this. Change-Id: I9cd8179fa54398f03e0f3b9ef95c080508cce8a3 Signed-off-by: Kostas Christidis <kostas@christidis.io>
- Loading branch information
1 parent
383f34d
commit 2f3237e
Showing
3 changed files
with
58 additions
and
4 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