-
Notifications
You must be signed in to change notification settings - Fork 289
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
Stream sync protocol #3535
Stream sync protocol #3535
Conversation
b9f4800
to
17c94ae
Compare
Are we ready to test this on a real network? |
Yep, ready! :) @LeoHChen |
92498ad
to
e06dad8
Compare
8ff2484
to
edc8884
Compare
…rvice. 1. Added some functionality to HostV2 for stream support. 2. Added new module discovery under p2p host to replace the networkInfo service. 3. Make dht datastore badger only active on bootstrap nodes. For normal nodes, badger is disabled by default. It can also be enabled by flags.
…ded metadata rpc.
6dd0f99
to
cd596aa
Compare
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.
some quick comments for this huge PR. Only go through a few files.
@@ -7,7 +7,7 @@ import ( | |||
"strings" | |||
"testing" | |||
|
|||
"github.com/harmony-one/harmony/api/service/syncing/downloader" | |||
"github.com/harmony-one/harmony/api/service/legacysync/downloader" |
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 rename of the package from syncing
to legacysync
should be a separate PR to simplify this PR.
@@ -1269,3 +1282,97 @@ func applyPrometheusFlags(cmd *cobra.Command, config *harmonyConfig) { | |||
config.Prometheus.EnablePush = cli.GetBoolFlagValue(cmd, prometheusEnablePushFlag) | |||
} | |||
} | |||
|
|||
var ( |
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 new flag added can also go to a new PR, can easily be merged.
|
||
if consensus.dHelper != nil { | ||
consensus.dHelper.start() | ||
} |
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.
any error message if dHelper == nil?
return nil | ||
} | ||
|
||
func (consensus *Consensus) waitForCommit() { |
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.
add a comment to this function please.
Since most of the code in this branch is already done in #3588, closing! |
Important notice
Since the size of this PR is too large for review, will split this PR to a set of small PRs for review. The breakdown PR will follow a bottom-up sequence for review.
Description
Tests
Current known issues
failed to negotiate security protocol: error reading handshake message: noise: message is too short
(Peers Cannot Successfully Handshake libp2p/go-libp2p-noise#70) This issue is already fixed in libp2p version v0.13.0. Will upgrade libp2p after this release (frozen code).