From 43c2e9c953ce0e6f8075f75330d61f6c7bc946b2 Mon Sep 17 00:00:00 2001 From: Beaudan Date: Fri, 2 Aug 2019 16:11:26 +1000 Subject: [PATCH] Use different seed nodes for development vs production and strip 2 characters from pubkey on testnet --- config/default.json | 10 +--------- config/production.json | 17 ++++++++++++++++- js/modules/loki_message_api.js | 2 +- 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/config/default.json b/config/default.json index e3d3701b8..c6ead5686 100644 --- a/config/default.json +++ b/config/default.json @@ -7,15 +7,7 @@ "defaultPoWDifficulty": "100", "seedNodeList": [ { - "ip": "3.104.19.14", - "port": "22023" - }, - { - "ip": "13.238.53.205", - "port": "38157" - }, - { - "ip": "imaginary.stream", + "ip": "storage.testnetseed1.loki.network", "port": "38157" } ], diff --git a/config/production.json b/config/production.json index 0967ef424..7114a9bba 100644 --- a/config/production.json +++ b/config/production.json @@ -1 +1,16 @@ -{} +{ + "seedNodeList": [ + { + "ip": "storage.seed1.loki.network", + "port": "22023" + }, + { + "ip": "storage.seed2.loki.network", + "port": "38157" + }, + { + "ip": "imaginary.stream", + "port": "38157" + } + ] +} diff --git a/js/modules/loki_message_api.js b/js/modules/loki_message_api.js index 5c98cc00e..c2f83fe3a 100644 --- a/js/modules/loki_message_api.js +++ b/js/modules/loki_message_api.js @@ -112,7 +112,7 @@ class LokiMessageAPI { } const params = { - pubKey, + pubKey: window.getEnvironment() === 'production' ? pubKey : pubKey.substring(0, pubKey.length - 2), ttl: ttl.toString(), nonce, timestamp: timestamp.toString(),