-
Notifications
You must be signed in to change notification settings - Fork 534
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
EVM 149 - syncer go ibft coordination #843
EVM 149 - syncer go ibft coordination #843
Conversation
Codecov Report
@@ Coverage Diff @@
## go-ibft-integration #843 +/- ##
======================================================
Coverage ? 51.25%
======================================================
Files ? 162
Lines ? 21190
Branches ? 0
======================================================
Hits ? 10860
Misses ? 9483
Partials ? 847 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
consensus/polybft/polybft.go
Outdated
if p.runtime.IsBridgeEnabled() { | ||
// start bridge event tracker | ||
if err := p.runtime.startEventTracker(); err != nil { | ||
return fmt.Errorf("starting event tracker failed:%w", err) |
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.
nitpicking :) missing a whitespace before %w
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.
Fixed c14c710
consensus/polybft/transport.go
Outdated
return topic.Subscribe(func(obj interface{}, _ peer.ID) { | ||
msg, ok := obj.(*pbftproto.TransportMessage) | ||
if !ok { | ||
cr.logger.Warn("failed to deliver message", "err", "invalid msg") |
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.
do we need to log the object itself? also is it a warning or an error?
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.
the same below.
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.
Fixed c14c710
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.
lgtm with few comments
|
||
return | ||
} | ||
// initialize pbft engine |
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.
Should you remove this commented code?
Description
This PR is a initial piece of code required to introduce go-ibft into v3-parity.
The following is implemented:
Changes include
Breaking changes
Please complete this section if any breaking changes have been made, otherwise delete it
Checklist
Testing
Additional comments
In order to split replacement of pbft with go-ibft into a smaller PRs, the tests will not be supported by this PR. The last PR in the incoming sequence of PRs will hold correct e2e tests.