-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For dedis #285
For dedis #285
Conversation
ineiti
commented
Apr 22, 2024
- add fastsync protocol which only sends new blocks when needed
- various small fixes:
- timeouts (for mixing 10'000 ballots)
- clean up socket file so CLI can be started twice in a row
- fix comparisons/updates of block indices and transaction nonces
Use RandomFilter to select a given amount of indexes randomly. Added suggestion from @PascalinDe
Adds the fastsync as default protocol to cosipbft. Adds a 'WithBlockSync' option for the old, slow protocol. Updates all the tests.
- increased the default timeouts (tests set their own timeout) - increased maximum message size over grpc
@@ -164,7 +175,7 @@ func TestService_Scenario_ViewChange_Request(t *testing.T) { | |||
require.Equal(t, leader, nodes[0].onet.GetAddress()) | |||
|
|||
// let enough time for a round to run | |||
time.Sleep(DefaultRoundTimeout + 100*time.Millisecond) | |||
time.Sleep(time.Second) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't there a way to speed up tests ? waiting a second so often is rather slow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could add a poll-wait here: check every 100ms if the desired state is reached, and quit if after 10 checks we're not there yet.
Which methods would need that?