forked from ethereum/go-ethereum
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Buffer future messages (NEW) (ethereum#672)
Backlog Changes: - Decouple Backlog from Core. Make it it's own type - Make MsgBacklog a interface + a default implementation - Backlog: extract common logic into `extractMessageView()` fn - Backlog: separate between `cleanBacklogForSeq` and `processBacklogForSeq` - `processBacklogForSeq` will stop iteration when process() returns false (optimization) - Rename `processBacklog()` to `updateState()`. Processing the backlog is a sideeffect of changing the currentView + State - Clean up backlog changes. Add inner tests. Other changes: - cleanup checkMessage with a "first check the view, then the msgCode" strategy - checkMessage no longer err with errTooFarIntoTheFuture, instead backloag will check that, and don't store those messages - errTooFarIntoTheFuture is no longer an error - checkMessage doesn't have a case for Old commit messages. Instead handleCommit will check if checkMEssage failed with oldMessage and do the check there. - FIX: error when processing RoundChangeMessages
- Loading branch information
Mariano Cortesi
committed
Dec 5, 2019
1 parent
530458a
commit 17c027b
Showing
8 changed files
with
575 additions
and
402 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,6 @@ import ( | |
) | ||
|
||
type backlogEvent struct { | ||
src istanbul.Validator | ||
msg *istanbul.Message | ||
} | ||
|
||
|
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