From 55dfbbf29aa7fdcd5b197c402f0f933afc65f2a0 Mon Sep 17 00:00:00 2001 From: pbca26 Date: Tue, 21 Feb 2017 21:41:46 +0300 Subject: [PATCH] switched official kmd explorer with dex api --- assets/scripts/kmd_wallet_dashboard.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/scripts/kmd_wallet_dashboard.js b/assets/scripts/kmd_wallet_dashboard.js index e0fbaf0..836be1d 100644 --- a/assets/scripts/kmd_wallet_dashboard.js +++ b/assets/scripts/kmd_wallet_dashboard.js @@ -323,7 +323,7 @@ function RunKMDInitFunctions() { function getRemoteCurrentHeight() { $.ajax({ type: 'GET', - url: 'http://kmd.explorer.supernet.org/insight-api-komodo/status?q=getInfo ', + url: 'http://localhost:7778/api/dex/getinfo?userpass=tmpIgRPCUser@' + sessionStorage.getItem('IguanaRPCAuth') + '&symbol=KMD', //dataType: 'text', success: function(data, textStatus, jqXHR) { //$('#read_debug_log_textarea').text(JSON.parse(data)); @@ -337,7 +337,7 @@ function RunKMDInitFunctions() { console.log(textStatus); console.log(error); } - }); + }); } getRemoteCurrentHeight(); @@ -361,7 +361,7 @@ function RunKMDInitFunctions() { var currentBestChain = temp[i].replace('height=', ''); $('#activating-komodod-tridot').hide(); $('#activating-komodod-progress').html(': ' + Math.floor(currentBestChain * 100 / totalBlocksInExplorer) + '% (blocks ' + currentBestChain + ' / ' + totalBlocksInExplorer + ')'); - + if (currentBestChain === totalBlocksInExplorer) { clearInterval(totalBlocksInExplorerInterval); clearInterval(currentBestBlockInterval); @@ -376,7 +376,7 @@ function RunKMDInitFunctions() { console.log(textStatus); console.log(error); } - }); + }); }, 1000); $('#kmd_wallet_dashoard_section').show();