We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What would you like to be added: when p2p creates a Host instance, it passed down couple of options:
func (p *agent) Start(ctx context.Context) error { ready := make(chan interface{}) p2p.SetLogger(log.L()) opts := []p2p.Option{ p2p.HostName(p.cfg.Host), p2p.Port(p.cfg.Port), p2p.Gossip(), p2p.SecureIO(), p2p.MasterKey(p.cfg.MasterKey), p2p.PrivateNetworkPSK(p.cfg.PrivateNetworkPSK), p2p.DHTProtocolID(p.chainID), p2p.DHTGroupID(p.chainID), }
add another option MaxPeerNumber(). A node is expected to maintain connection to (80% of this number) many peers to be considered healthy
MaxPeerNumber()
Why is this needed: to work with ongoing p2p improvement
The text was updated successfully, but these errors were encountered:
Liuhaai
Successfully merging a pull request may close this issue.
What would you like to be added:
when p2p creates a Host instance, it passed down couple of options:
add another option
MaxPeerNumber()
. A node is expected to maintain connection to (80% of this number) many peers to be considered healthyWhy is this needed:
to work with ongoing p2p improvement
The text was updated successfully, but these errors were encountered: