And I’ve tested the answer by @achingbrain in the GitHub issue like this:
import { MemoryDatastore } from "interface-datastore"
export const IPFS = IPFSCore.create({
repo: new Repo(`.ipfs`, {
storageBackends: {
root: MemoryDatastore,
blocks: MemoryDatastore,
keys: MemoryDatastore,
datastore: MemoryDatastore
}
}),
start: false,
// silent: true,
init: {
algorithm: "Ed25519"
}
})
but this emits another error like this:
unexpected error when determining the last published IPNS record for 0,36,8,1,18,32,224,177,254,116,17,126,27,149,182,8,164,242,33,223,49,71,116,178,14,166,104,66,53,13,81,83,113,199,198,150,108,110 Error: unexpected error getting the ipns record 0,36,8,1,18,32,224,177,254,116,17,126,27,149,182,8,164,242,33,223,49,71,116,178,14,166,104,66,53,13,81,83,113,199,198,150,108,110 from datastore
at IpnsPublisher._getPublished (../../../node_modules/ipfs-core/src/ipns/publisher.js:151:23)
at IpnsPublisher._updateOrCreateRecord (../../../node_modules/ipfs-core/src/ipns/publisher.js:196:27)
at IpnsPublisher.publishWithEOL (../../../node_modules/ipfs-core/src/ipns/publisher.js:31:31)
at IPNS.publish (../../../node_modules/ipfs-core/src/ipns/index.js:32:7)
at Object.create (../../../node_modules/ipfs-core/src/components/index.js:228:7)
at IpnsPublisher._updateOrCreateRecord (../../../node_modules/ipfs-core/src/ipns/publisher.js:202:23)
at IpnsPublisher.publishWithEOL (../../../node_modules/ipfs-core/src/ipns/publisher.js:31:20)
at IPNS.publish (../../../node_modules/ipfs-core/src/ipns/index.js:32:7)
at Object.create (../../../node_modules/ipfs-core/src/components/index.js:228:7)
I’m using:
"interface-datastore": "^3.0.4",
"ipfs-core": "^0.5.2",
"ipfs-repo": "^8.0.0",