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

fix: ensure that features are set when syncing peers #3745

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Jan 25, 2022

Description

  • updates features in peer sync when a signature is valid
  • invalidates the identity signature of a peer if addresses/features are changed

Motivation and Context

If a peer somehow is created with incorrect peer features (say, by adding a wallet to peer_seeds list), and that same peer is later synced with a valid signature but without updating the erroneous features in the existing peer, the peer will have an invalid state and signature in its database causing it to be banned by other nodes.

How Has This Been Tested?

Manually, added a wallet to my peer seeds and didnt get banned

@stringhandler stringhandler merged commit 8efd2e4 into tari-project:development Jan 25, 2022
@sdbondi sdbondi deleted the comms-invalidate-sig-on-peer-features-update branch January 25, 2022 13:51
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