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

allow for insertion of dummy entry points into the local table #346

Merged
merged 1 commit into from
Jun 13, 2018

Conversation

aeyakovenko
Copy link
Member

@aeyakovenko aeyakovenko commented Jun 13, 2018

  • Needed for public testnet demo #341. Create a dummy entry with public key 0..., but with a valid gossip address that we can ask for updates. This will allow validators to discover the full network by just knowing a single node's gossip address without knowing anything else about their identity.
  • once we start removing dead validators this entry should get purged since we will never see a message from public key 0, Purge offline validators #344

@codecov
Copy link

codecov bot commented Jun 13, 2018

Codecov Report

Merging #346 into master will increase coverage by 0.23%.
The diff coverage is 94.73%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #346      +/-   ##
==========================================
+ Coverage   91.11%   91.34%   +0.23%     
==========================================
  Files          34       34              
  Lines        3365     3375      +10     
==========================================
+ Hits         3066     3083      +17     
+ Misses        299      292       -7
Impacted Files Coverage Δ
src/crdt.rs 84.6% <94.73%> (+1.37%) ⬆️
src/entry_writer.rs 82.85% <0%> (-5.72%) ⬇️
src/tvu.rs 97.67% <0%> (+1.16%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e44d423...3c36668. Read the comment docs.

@@ -134,6 +133,17 @@ impl ReplicatedData {
repair_addr,
)
}
pub fn new_entry_point(gossip_addr: SocketAddr) -> Self {
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you mean by entry_point here? Would new_from_base_addr make more sense?

Copy link
Member Author

Choose a reason for hiding this comment

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

By entry point I meant that it’s a gossip network entry point, it’s a dummy entry that had an invalid public key. It’s used to attach to the network initially and will eventually get purged

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add code comments? You don't add a test in this PR and the only explanation is in the PR description and the review comment above.

Copy link
Contributor

Choose a reason for hiding this comment

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

Nevermind, I just didn't grok the test.

@aeyakovenko aeyakovenko added this to the v0.7.0 milestone Jun 13, 2018
@aeyakovenko aeyakovenko merged commit 2d3b052 into solana-labs:master Jun 13, 2018
vkomenda pushed a commit to vkomenda/solana that referenced this pull request Aug 29, 2021
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.

2 participants