-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[bug][regression] IPNS pubsub fails to update records #3875
Comments
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review.
Finally, remember to use https://discuss.ipfs.io if you just need general support. |
@vasco-santos This seems to be a regression introduced in this PR: |
js-ipfs is being deprecated in favor of Helia. You can #4336 and read the migration guide. Please feel to reopen with any comments by 2023-06-02. We will do a final pass on reopened issues afterward (see #4336). Leaving assigned to Alex to review. Maybe related to libp2p/js-libp2p-delegated-content-routing#49 |
This should have been fixed in https://github.com/ipfs/helia-ipns - if it's not please open an issue on that repo. |
Description:
Subscribed IPNS records don't get updated over pubsub. After the first record is stored in the datastore, it seems that no newer sequences can override it.
It looks like the code in datastore-pubsub is sending the wrong parameters to the IPNS validator.
While the ipns code expects just the 2 records as params:
Also there seems to be another issue in the selection code here:
This issue is a blocker for IPNS over pubsub. Also there's another issue blocking IPNS over DHT. So at the moment IPNS seems to be broken in js-ipfs.
Steps to reproduce the error:
NodeB subscribes to a KeyA
NodeA publishes an IPNS record with KeyA
NodeB receives the update and stores it in the pubsub datastore
NodeA publishes an updated IPNS record with KeyA
NodeB fails to compare the 2 records and keeps the old one
Version:
ipfs-core: 0.10.6
Subsystem:
datastore-pubsub
ipns
Severity:
Medium - A non-essential functionality does not work, performance issues, etc.
The text was updated successfully, but these errors were encountered: