From f2eef58cb1c337385aaffd0e1d73816760670aaa Mon Sep 17 00:00:00 2001 From: haad Date: Mon, 16 Jan 2023 12:51:44 +0200 Subject: [PATCH] Remove old ipfs version patches --- test/access-controllers/utils/start-ipfs.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/test/access-controllers/utils/start-ipfs.js b/test/access-controllers/utils/start-ipfs.js index 583ada5..8643c0b 100644 --- a/test/access-controllers/utils/start-ipfs.js +++ b/test/access-controllers/utils/start-ipfs.js @@ -12,11 +12,6 @@ export default (type, config = {}) => { reject(new Error(`Wanted API type ${JSON.stringify(type)} is unknown. Available types: ${Object.keys(testAPIs).join(', ')}`)) } - // If we're starting a process, pass command line arguments to it - if (!config.args) { - config.args = ['--enable-pubsub-experiment'] - } - // Spawn an IPFS daemon (type defined in) IPFSFactory .create(testAPIs[type]) @@ -25,14 +20,6 @@ export default (type, config = {}) => { reject(err) } - // Monkey patch _peerInfo to the ipfs api/instance - // to make js-ipfs-api compatible with js-ipfs - // TODO: Get IPFS id via coherent API call (without it being asynchronous) - if (!ipfsd.api._peerInfo) { - const { id } = await ipfsd.api.id() - ipfsd.api._peerInfo = { id: { _idB58String: id } } - } - resolve(ipfsd) }) })