From 1d8aa6803444e3e29befe9b35fa61c9b5a10652b Mon Sep 17 00:00:00 2001 From: Abhishek Sinha Date: Wed, 15 Apr 2020 14:11:40 +0530 Subject: [PATCH] fixed if for nextBackupSupernodeToSyncDataBeforeActingAsBackupSupernodeNodeRequest --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index e2719dd..a3b536e 100644 --- a/index.html +++ b/index.html @@ -29205,11 +29205,11 @@ // If connected with Backup Supernode, request it to sync data. const closestSuList = await readAllDB("myClosestSupernodes"); - if (`${WS}://${closestSuList[0].ip}/`!==websocket.url) { - const switchMyWS = new backupSupernodesWebSocketObject(); - const connectedWSServerFloId = await switchMyWS.getFloIdFromWSUrl( + const switchMyWS = new backupSupernodesWebSocketObject(); + const connectedWSServerFloId = await switchMyWS.getFloIdFromWSUrl( websocket.url - ); + ); + if (connectedWSServerFloId!==closestSuList[0].trader_flo_address) { const RM_RPC = new localbitcoinplusplus.rpc(); let server_response = await RM_RPC.send_rpc.call(