From ce9a2e7a7a80cc7160a1fa89d6eeb4c4b9d6fdb7 Mon Sep 17 00:00:00 2001 From: dynamiccreator <43098612+dynamiccreator@users.noreply.github.com> Date: Sun, 20 Jun 2021 18:18:29 +0200 Subject: [PATCH 1/2] Update config.js --- config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/config.js b/config.js index c50d362..4d4a565 100644 --- a/config.js +++ b/config.js @@ -5,6 +5,7 @@ module.exports = function () { cnf_username = ""; cnf_password = ""; cnf_read_block_height = 1700000; //(0 for sync from block 0 or a higher value for quick testing) + cnf_server_mode= "testnet"; //Maria DB cnf_db_host = "localhost"; From 54fca5864d33358d649d86babc58e365bbb0d35a Mon Sep 17 00:00:00 2001 From: dynamiccreator <43098612+dynamiccreator@users.noreply.github.com> Date: Sun, 20 Jun 2021 18:22:45 +0200 Subject: [PATCH 2/2] Update server.js --- server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index 838fee8..29f4461 100644 --- a/server.js +++ b/server.js @@ -248,6 +248,7 @@ io.on('connection', socket => { result.sync_id=sync_id; result.alias_prices=alias_prices; result.server_donation_address=cnf_donation_address; + result.server_mode=cnf_server_mode; socket.emit("server_respond_sync_data",result); } else{ @@ -544,4 +545,4 @@ async function get_blockhash_by_blockheight(list){ var result= await alias_database.get_blockhash_by_blockheight(list); return result; -} \ No newline at end of file +}