diff --git a/supernode/index.html b/supernode/index.html
index 3818e85..cb7fdad 100644
--- a/supernode/index.html
+++ b/supernode/index.html
@@ -48,6 +48,9 @@
@@ -9635,8 +9638,8 @@
if (typeof params.trader_flo_address == "string") respective_trader_id = params.trader_flo_address;
request.response = {};
- localbitcoinplusplus.rpc.prototype.filter_legit_requests(async function (is_valid_request) {
- /*try {
+ //localbitcoinplusplus.rpc.prototype.filter_legit_requests(async function (is_valid_request) {
+ try {
// CHECK HERE IF USER IS INDULGED IN ANY MORE TRADE. IF TRUE RETURN ERROR
await readAllDB("deposit").then(function(res) {
@@ -9673,8 +9676,8 @@
});
} catch (error) {
throw new Error(error);
- }*/
- });
+ }
+ //});
switch (method) {
case "trade_buy":
@@ -11689,9 +11692,7 @@
}
});
}
-
}
-
});
break;
case "update_all_withdraw_cash_depositor_claim":
@@ -12328,6 +12329,9 @@
}
});
+ // Show balances
+ displayBalances(idbData.myLocalFLOAddress);
+
/* Give user the facillity to trade */
buildTradeUI(idbData);
@@ -12358,12 +12362,50 @@
}
+
+
+
@@ -12751,11 +12783,11 @@
/************************ Case of dispute *****************/
if (trader_deposits.bitcoinToBePaid - balance > localbitcoinplusplus.master_configurations.btcTradeMargin) {
- console.log(trader_deposits.bitcoinToBePaid - balance, localbitcoinplusplus.master_configurations
+ console.log(trader_deposits.bitcoinToBePaid, balance, localbitcoinplusplus.master_configurations
.btcTradeMargin);
trader_deposits.status = 4; // User sent less BTC than he should #Disputed
- updateinDB("deposit", trader_deposits, trader_flo_address);
+ updateinDB("deposit", trader_deposits, trader_deposits.trader_flo_address);
} else {
//Deposit successful. Update user balance and status to 2. Its Private key can be
// now given to a random trader
@@ -12795,15 +12827,7 @@
}
}
- setInterval(function () {
- readDBbyIndex("deposit", 'status', 1).then(function (res) {
- res.map(function (deposit_trade) {
- if (localbitcoinplusplus.master_configurations.tradableAsset1.includes(deposit_trade.product)) {
- validateDepositedBTCBalance(deposit_trade);
- }
- });
- });
- }, 600000);
+