Browse Source

native mode coin startup update

master
Satinder Grewal 8 years ago
parent
commit
f48677f8b7
  1. 20
      assets/scripts/iguana_api.js

20
assets/scripts/iguana_api.js

@ -173,8 +173,12 @@ function Iguana_addcoinLogin(addcoin_data) {
var tmpIguanaRPCAuth = 'tmpIgRPCUser@'+sessionStorage.getItem('IguanaRPCAuth');
if ( addcoin_data.mode == '-1' ) {
var setconfig = Shepherd_setConf('komodod');
var startcoin = Shepherd_herd('komodod');
var setconfig = setTimeout(function() {
Shepherd_setConf('komodod');
}, 0)
var startcoin = setTimeout(function() {
Shepherd_herd('komodod');
}, 3000)
Promise.all([setconfig, startcoin]).then(function() {
console.log('all promises executed!!!');
@ -189,6 +193,7 @@ function Iguana_addcoinLogin(addcoin_data) {
console.log(logincoinfullname);
console.log(logincoinmodeinfo);
}
setTimeout(function() {
$.ajax({
type: 'POST',
data: JSON.stringify(AddCoinData),
@ -221,6 +226,7 @@ function Iguana_addcoinLogin(addcoin_data) {
console.log(error);
}
});
}, 3000)
}
function Iguana_addcoin(addcoin_data) {
@ -329,8 +335,12 @@ function Iguana_addcoin(addcoin_data) {
var tmpIguanaRPCAuth = 'tmpIgRPCUser@'+sessionStorage.getItem('IguanaRPCAuth');
if ( addcoin_data.mode == '-1' ) {
var setconfig = Shepherd_setConf('komodod');
var startcoin = Shepherd_herd('komodod');
var setconfig = setTimeout(function() {
Shepherd_setConf('komodod');
}, 0)
var startcoin = setTimeout(function() {
Shepherd_herd('komodod');
}, 3000)
Promise.all([setconfig, startcoin]).then(function() {
console.log('all promises executed!!!');
@ -385,6 +395,7 @@ function Iguana_addcoin(addcoin_data) {
console.log(logincoinfullname);
console.log(logincoinmodeinfo);
}
setTimeout(function() {
$.ajax({
type: 'POST',
data: JSON.stringify(AddCoinData),
@ -424,6 +435,7 @@ function Iguana_addcoin(addcoin_data) {
console.log(error);
}
});
}, 3000)
}
function ExecuteAddCoinFn() {

Loading…
Cancel
Save