Skip to content

config: create BootstrapPeers p2p config parameter#6372

Merged
cmwaters merged 9 commits intomasterfrom
callum/bootstrap_peers
Apr 22, 2021
Merged

config: create BootstrapPeers p2p config parameter#6372
cmwaters merged 9 commits intomasterfrom
callum/bootstrap_peers

Conversation

@cmwaters
Copy link
Contributor

@cmwaters cmwaters commented Apr 20, 2021

Closes: #6363

@codecov
Copy link

codecov bot commented Apr 20, 2021

Codecov Report

Merging #6372 (c9ce69e) into master (990504c) will increase coverage by 0.00%.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##           master    #6372   +/-   ##
=======================================
  Coverage   60.67%   60.68%           
=======================================
  Files         283      283           
  Lines       26925    26929    +4     
=======================================
+ Hits        16337    16341    +4     
- Misses       8884     8887    +3     
+ Partials     1704     1701    -3     
Impacted Files Coverage Δ
config/config.go 74.46% <ø> (ø)
config/toml.go 59.09% <ø> (ø)
node/node.go 57.07% <0.00%> (-0.23%) ⬇️
crypto/sr25519/pubkey.go 47.82% <0.00%> (-8.70%) ⬇️
blockchain/v2/routine.go 59.15% <0.00%> (-7.05%) ⬇️
privval/signer_endpoint.go 75.75% <0.00%> (-3.04%) ⬇️
blockchain/v0/pool.go 74.52% <0.00%> (-2.67%) ⬇️
privval/signer_listener_endpoint.go 87.05% <0.00%> (-2.36%) ⬇️
blockchain/v0/reactor.go 63.20% <0.00%> (-1.60%) ⬇️
p2p/transport_memory.go 85.13% <0.00%> (-1.36%) ⬇️
... and 16 more

Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

Nice! This can't be hooked up until the seed work/pex v2 is complete, right?

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
if err != nil {
return nil, fmt.Errorf("invalid peer address %q: %w", p, err)
}
peers = append(peers, address)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It gets added to the peer manager here before we even start the pex reactor @alexanderbez

Copy link
Contributor

Choose a reason for hiding this comment

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

Yup, this looks correct!

@cmwaters cmwaters requested a review from tychoish as a code owner April 22, 2021 08:16
@cmwaters cmwaters merged commit 36d8cb0 into master Apr 22, 2021
@cmwaters cmwaters deleted the callum/bootstrap_peers branch April 22, 2021 10:55
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.

config: reuse Seeds p2p config parameter as initial peers to connect with

2 participants