Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

fix two bugs in signed address handling #155

Merged
merged 2 commits into from
Jun 8, 2020
Merged

Conversation

Stebalien
Copy link
Member

@Stebalien Stebalien commented Jun 6, 2020

  1. Previously, two calls to ConsumePeerRecord could interleave and cause us to keep old addresses with a new record. This has only been fixed in the in-memory peerstore.
  2. Changes ConsumePeerRecord to accept peer records with sequence numbers equal to existing peer records. This lets us update the TTL. Otherwise, we'll never update the TTL for a peer's addresses until they create a new record.

Previously, we'd only set the TTL if the addresses were new.
Previously, two calls to ConsumePeerRecord could interleave and cause us to keep
_old_ addresses with a _new_ record.
@Stebalien Stebalien changed the title fix: make processing signed address records atomic fix two bugs in signed address handling Jun 6, 2020
@Stebalien Stebalien merged commit 74ed1a9 into master Jun 8, 2020
@Stebalien Stebalien deleted the fix/peer-record-bugs branch June 8, 2020 15:24
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.

2 participants