fixed if for nextBackupSupernodeToSyncDataBeforeActingAsBackupSupernodeNodeRequest
This commit is contained in:
parent
7cdeac499d
commit
1d8aa68034
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user