fixed various issues in backup
This commit is contained in:
parent
0c7abd21bb
commit
b6487f1aab
@ -14577,7 +14577,7 @@
|
|||||||
let buyerBTCResponseObject;
|
let buyerBTCResponseObject;
|
||||||
let buyer_btc_id =
|
let buyer_btc_id =
|
||||||
`${buyPipeObj.trader_flo_address}_${buyPipeObj.product}`;
|
`${buyPipeObj.trader_flo_address}_${buyPipeObj.product}`;
|
||||||
_readDB("crypto_balances", buyPipeObj.trader_flo_address).then(
|
_readDB("crypto_balances", buyer_btc_id).then(
|
||||||
function (buyPipeBTCRes) {
|
function (buyPipeBTCRes) {
|
||||||
if (typeof buyPipeBTCRes == "object" && typeof buyPipeBTCRes
|
if (typeof buyPipeBTCRes == "object" && typeof buyPipeBTCRes
|
||||||
.crypto_balance == "number") {
|
.crypto_balance == "number") {
|
||||||
@ -14588,7 +14588,7 @@
|
|||||||
} else {
|
} else {
|
||||||
// The user bought BTC for first time
|
// The user bought BTC for first time
|
||||||
buyerBTCResponseObject = {
|
buyerBTCResponseObject = {
|
||||||
id: `${buyPipeObj.trader_flo_address}_${buyPipeObj.product}`,
|
id: buyer_btc_id,
|
||||||
trader_flo_address: buyPipeObj.trader_flo_address,
|
trader_flo_address: buyPipeObj.trader_flo_address,
|
||||||
crypto_balance: eqBTCBuyer,
|
crypto_balance: eqBTCBuyer,
|
||||||
crypto_currency: buyPipeObj.product
|
crypto_currency: buyPipeObj.product
|
||||||
@ -16865,7 +16865,7 @@
|
|||||||
|
|
||||||
console.log("ifAllPrevSuAreDead: ", ifAllPrevSuAreDead);
|
console.log("ifAllPrevSuAreDead: ", ifAllPrevSuAreDead);
|
||||||
|
|
||||||
if (ifAllPrevSuAreDead !== true) {
|
if (ifAllPrevSuAreDead !== true || res_obj.method=='sync_backup_supernode_from_backup_supernode_response') {
|
||||||
console.log(res_obj);
|
console.log(res_obj);
|
||||||
showMessage(`INFO: "checkIfAllPreviousSupernodesAreDeadForAUserNode" check failed.`);
|
showMessage(`INFO: "checkIfAllPreviousSupernodesAreDeadForAUserNode" check failed.`);
|
||||||
handle_backup_server_messages(response);
|
handle_backup_server_messages(response);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user