fixed if for nextBackupSupernodeToSyncDataBeforeActingAsBackupSupernodeNodeRequest

This commit is contained in:
Abhishek Sinha 2020-04-15 14:11:40 +05:30
parent 7cdeac499d
commit 1d8aa68034

View File

@ -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(