diff --git a/supernode/flosend.html b/supernode/flosend.html index 4dcc792..32004c0 100644 --- a/supernode/flosend.html +++ b/supernode/flosend.html @@ -3443,7 +3443,7 @@ })(); - + //script.js // Actual Code Begins Here function createRawTransaction() { @@ -3471,7 +3471,7 @@ const mainnet = `https://livenet.flocha.in`; const testnet = `https://testnet.flocha.in`; - let server = mainnet; + let server = testnet; - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - + - + + + + + + - - - - - - - + + + + + - + + @@ -8632,8 +9408,7 @@ //AJAX Post ajaxPost: function (url, data, callback) { - var newName = 'John Smith', - xhr = new XMLHttpRequest(); + xhr = new XMLHttpRequest(); xhr.open('POST', url); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xhr.onload = function () { @@ -8952,11 +9727,15 @@ if (localbitcoinplusplus.wallets.prototype .verify(resp.data.depositDataHash, resp.data.order_validator_sign, resp.data.order_validator_public_key)) { addDB('deposit', resp.data); - let counterTraderAccountAddress = - `

Please pay the amount to following address:

-

${resp.msg}

`; - let asset_boxx = document.getElementById("asset_box"); - asset_boxx.insertAdjacentHTML('beforeend', counterTraderAccountAddress); + readDB("localbitcoinUser" ,"00-01", function(user) { + if (typeof user == "object" && user.myLocalFLOAddress==resp.data.trader_flo_address) { + let counterTraderAccountAddress = + `

Please pay the amount to following address:

+

${resp.msg}

`; + let asset_boxx = document.getElementById("asset_box"); + asset_boxx.insertAdjacentHTML('beforeend', counterTraderAccountAddress); + } + }); } } break; @@ -9606,8 +10385,6 @@ //let url = `https://blockchain.info/q/addressbalance/${BTCAddress}?confirmations=6`; let url = `https://testnet.flocha.in/api/addr/${trader_deposits.btc_address}/balance`; helper_functions.ajaxGet(url, function (balance) { - console.log(balance); - if (!isNaN(balance) && parseFloat(balance) > 0) { balance = parseFloat(balance); @@ -9657,7 +10434,7 @@ setInterval(function () { readDBbyIndex("deposit", 'status', 1, function (res) { - res.map(function (deposit_trade) { // deposit_trade.trader_flo_address, deposit_trade.btc_address, deposit_trade.bitcoinToBePaid + res.map(function (deposit_trade) { if (deposit_trade.product == "BTC") { validateDepositedBTCBalance(deposit_trade); }