interface-js-ipfs-core
interface-js-ipfs-core copied to clipboard
[WIP] feat: adds tests for name.publish and name.resolve
- Adds test which:
- creates two nodes
- connects them (
swarm.connect
) - calls
name.publish
on node0 - calls
name.resolve(
/ipns/${node0.peerid})
on the other
I could do with some advice possibly from the go-ipfs team(?), as step 4 fails with Error: Could not resolve name.
. Why might that be?
Also:
- Pulls repeated
spawnWithId
function into a module - Updates doc to reflect return value from go-ipfs
Should try to use the new experimental feature for pubsub resolve (but still test the old one as well), but with the flag --enable-namesys-pubsub
together with --enable-pubsub-experiment
will make publish/resolve a lot faster.
What's missing here?
Just the fact that the tests don't pass and I couldn't figure out why...