Browse Source

native addr list fix

all-modes
pbca26 8 years ago
parent
commit
4cadf0d363
  1. 12
      react/src/actions/actionCreators.js

12
react/src/actions/actionCreators.js

@ -48,6 +48,8 @@ export const DASHBOARD_DISPLAY_NOTARIES_MODAL = 'DASHBOARD_DISPLAY_NOTARIES_MODA
export const DASHBOARD_CONNECT_NOTARIES = 'DASHBOARD_CONNECT_NOTARIES'; export const DASHBOARD_CONNECT_NOTARIES = 'DASHBOARD_CONNECT_NOTARIES';
export const VIEW_CACHE_DATA = 'VIEW_CACHE_DATA'; export const VIEW_CACHE_DATA = 'VIEW_CACHE_DATA';
var iguanaForks = {}; // forks in mem array
export function toggleViewCacheModal(display) { export function toggleViewCacheModal(display) {
return { return {
type: VIEW_CACHE_DATA, type: VIEW_CACHE_DATA,
@ -305,10 +307,10 @@ export function dismissToasterMessage() {
export function addCoin(coin, mode) { export function addCoin(coin, mode) {
console.log('coin, mode', coin + ' ' + mode); console.log('coin, mode', coin + ' ' + mode);
startIguanaInstance(mode, coin) /*startIguanaInstance(mode, coin)
.then(function(json) { .then(function(json) {
console.log('addCoin+startIguanaInstance', json); console.log('addCoin+startIguanaInstance', json);
}); });*/
if (mode === '-1') { if (mode === '-1') {
return dispatch => { return dispatch => {
dispatch(shepherdGetConfig(coin, mode)); dispatch(shepherdGetConfig(coin, mode));
@ -1010,7 +1012,7 @@ export function getKMDAddressesNative(coin, mode, currentAddress) {
}; };
} }
if (mode === 'native' || mode === 'basilisk') { if (mode === 'full' || mode === 'basilisk') {
payload = { payload = {
'userpass': 'tmpIgRPCUser@' + sessionStorage.getItem('IguanaRPCAuth'), 'userpass': 'tmpIgRPCUser@' + sessionStorage.getItem('IguanaRPCAuth'),
'coin': coin, 'coin': coin,
@ -1021,7 +1023,6 @@ export function getKMDAddressesNative(coin, mode, currentAddress) {
'timeout': 60000 'timeout': 60000
}; };
} }
//console.log('pl', payload);
if (sessionStorage.getItem('useCache') && mode === 'basilisk') { if (sessionStorage.getItem('useCache') && mode === 'basilisk') {
const pubkey = JSON.parse(sessionStorage.getItem('IguanaActiveAccount')).pubkey; const pubkey = JSON.parse(sessionStorage.getItem('IguanaActiveAccount')).pubkey;
@ -1117,9 +1118,6 @@ export function getKMDAddressesNative(coin, mode, currentAddress) {
//console.log('result', result); //console.log('result', result);
if (mode === 'full' || mode === 'basilisk') { if (mode === 'full' || mode === 'basilisk') {
result[0] = result[0].result; result[0] = result[0].result;
} else {
result[0] = result[0].result;
result[1] = result[1].result;
} }
//console.log('calc result', result); //console.log('calc result', result);

Loading…
Cancel
Save