This repository has been archived by the owner on Aug 1, 2023. It is now read-only.
Test imported js-ipfs ipns key pubsub'ing to, and resolving on go-ipfs #136
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
After having issues publishing to
ipns
using an importedkey
injs-ipfs
, then (with pubsub enabled) attempting to resolve thatipns key
ongo-ipfs
, @vasco-santos proposed submitting a PR with failing tests. This is the PR to show where it's failing.Prior Art
This test is based off https://github.com/ipfs/interop/blob/master/test/ipns-pubsub.js#L89-L115
Referenced People and Conversations:
https://discuss.ipfs.io/t/cant-access-published-ipns-record-config-problem/5476/17
https://discuss.ipfs.io/t/ipns-not-resolvable-from-other-node/8624/3
ipfs/kubo#6360
I've been trying to figure this out with @aschmahmann who has been doing great work on the go-side of things, and his upcoming changes may fix this issue. For now, here's the failing test on it.
Failing tests
The test fail:
When the imported key is replaced with 'self' key, everything works fine, as expected.
Other note
I added
"test:node-ipns"
just so I could run this test by itself, left it there for anyone who needs the same functionality while reviewing this test.