Skip to content
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

optimize chain #283

Closed
wants to merge 20 commits into from
Closed

optimize chain #283

wants to merge 20 commits into from

Conversation

PascalinDe
Copy link

  • add fastsync protocol
  • fix comparisons/updates of block indices and 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.
Adding a fast synchronisation protocol
- increased the default timeouts (tests set their own timeout)
- increased maximum message size over grpc
Using main for github workflow
Updating the timeouts to make pass 1000 votes
Don't use the sync beforehand - the manager.Make takes care of that
@PascalinDe
Copy link
Author

@ineiti I wasn't sure how to split this up in smaller PRs as they seem to more or less revolve around the same issue (syncing) with maybe one or two commits that address some other issue, I let you split this up more sensibly if need be

Copy link
Member

@ineiti ineiti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one comment that needs to be removed - @PascalinDe do you want to patch the commit? Or shall I do it?

@@ -2,7 +2,7 @@ name: Go lint

on:
push:
branches: [ master ]
branches: [ main ]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pierluca @jbsv - not sure if you want to switch to main branch instead of master. We switched all our repos to main: https://www.theserverside.com/feature/Why-GitHub-renamed-its-master-branch-to-main

Comment on lines +87 to +88
// LG: DEBUG - I'd like to keep this commented line, as it helps debugging.
// res.Message = fmt.Sprintf("%+v", err)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ineiti TODO: need to remove these lines...

@ineiti
Copy link
Member

ineiti commented Apr 22, 2024

Closed in favor of #285

@ineiti ineiti closed this Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants