diff --git a/ot-node.js b/ot-node.js index cb8283521a..309fc60261 100644 --- a/ot-node.js +++ b/ot-node.js @@ -74,14 +74,6 @@ class OTNode { // set default user configuration filename this.config.configFilename = '.origintrail_noderc'; } - const fileService = new FileService({ config: this.config }); - const updateFilePath = fileService.getUpdateFilePath(); - if (fs.existsSync(updateFilePath)) { - this.config.otNodeUpdated = true; - fileService.removeFile(updateFilePath).catch((error) => { - this.logger.warn(`Unable to remove update file. Error: ${error}`); - }); - } } async initializeDependencyContainer() { diff --git a/src/modules/network/implementation/libp2p-service.js b/src/modules/network/implementation/libp2p-service.js index ac3a483428..8ef0119b5e 100644 --- a/src/modules/network/implementation/libp2p-service.js +++ b/src/modules/network/implementation/libp2p-service.js @@ -39,7 +39,10 @@ class Libp2pService { this.config = config; this.logger = logger; - initializationObject.dht = new KadDHT({ kBucketSize: this.config.kBucketSize }); + initializationObject.dht = new KadDHT({ + kBucketSize: this.config.kBucketSize, + clientMode: false, + }); initializationObject.peerRouting = this.config.peerRouting; initializationObject.connectionManager = this.config.connectionManager;