Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

More fullnode grooming #2681

Merged
merged 4 commits into from
Feb 7, 2019
Merged

More fullnode grooming #2681

merged 4 commits into from
Feb 7, 2019

Conversation

mvines
Copy link
Contributor

@mvines mvines commented Feb 7, 2019

✅Remove more unnecessary pub and dead code
✅Remove unnecessary imports
✅Refactor confusing role_notifiers tuple
✅Shuffle types to tvu.rs/tpu.rs so that less files need to import fullnode (fullnode ought to be at the top of the dogpile, nobody should import it)

@codecov
Copy link

codecov bot commented Feb 7, 2019

Codecov Report

Merging #2681 into master will increase coverage by <.1%.
The diff coverage is 75%.

@@           Coverage Diff            @@
##           master   #2681     +/-   ##
========================================
+ Coverage    76.7%   76.7%   +<.1%     
========================================
  Files         114     114             
  Lines       18583   18581      -2     
========================================
  Hits        14254   14254             
+ Misses       4329    4327      -2

@mvines mvines merged commit 95ac630 into solana-labs:master Feb 7, 2019
@mvines mvines deleted the tidy branch February 7, 2019 17:33
CriesofCarrots pushed a commit to CriesofCarrots/solana that referenced this pull request Aug 27, 2024
…lana-labs#2666) (solana-labs#2681)

* customizes override logic for gossip ContactInfo (solana-labs#2579)

If there are two running instances of the same node, we want the
ContactInfo with more recent start time to be propagated through
gossip regardless of wallclocks.

The commit adds custom override logic for ContactInfo to first compare
by outset timestamp.

* updates ContactInfo.outset when hot-swapping identity (solana-labs#2613)

When hot-swapping identity, ContactInfo.outset should be updated so that
the new ContactInfo overrides older node with the same pubkey.

* patches bug causing false duplicate nodes error (solana-labs#2666)

The bootstrap code during the validator start pushes a contact-info with
more recent timestamp to gossip. If the node is staked the contact-info
lingers in gossip causing false duplicate node instances when the fully
initialized node joins gossip later on.

The commit refreshes the timestamp on contact-info so that it overrides
the one pushed by bootstrap and avoid false duplicates error.

---------

Co-authored-by: behzad nouri <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant