forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v2.0: patches bug causing false duplicate nodes error (backport of #2666
) (#2681) * customizes override logic for gossip ContactInfo (#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 (#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 (#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]>
- Loading branch information
1 parent
590a23c
commit 11b87c1
Showing
7 changed files
with
118 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters