subconsciousnetwork / subconscious

Apache License 2.0
9 stars 0 forks source link

Re-assigning a petname still returns old DID #608

Closed bfollington closed 1 year ago

bfollington commented 1 year ago

It seems as if a petname returns the first DID it was ever assigned, if it is current assigned one? This may be a result of syncing with the gateway, it reminds me of #569.

Reproduction Steps:

  1. Follow a user with petname @test (did:key:123)
  2. Unfollow them
  3. Follow a new user with petname @test (did:key:456)
  4. Find that @test resolves to did:key:123 NOT did:key:456
bfollington commented 1 year ago

Found during playtesting.

Noosphere logs show that immediately after assigning a new identity to the name jordan it returns the old identity, it's possible this is a noosphere issue.

DEBUG noosphere_sphere::petname::write: Adopting 'jordan' (did:key:z6MkpDvpHue5XMimBKjd8xZ2GkaKCrSPwihncUaBnPs62SgU)

cdata commented 1 year ago

Repro'd, this is a Noosphere bug