|
|
@ -1417,4 +1417,28 @@ void komodo_args() |
|
|
|
//fprintf(stderr,"IS_KOMODO_NOTARY %d %s\n",IS_KOMODO_NOTARY,NOTARY_PUBKEY.c_str());
|
|
|
|
} |
|
|
|
//fprintf(stderr,"%s chain params initialized\n",ASSETCHAINS_SYMBOL);
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
struct komodo_state *komodo_stateptr(char *symbol,char *dest) |
|
|
|
{ |
|
|
|
int32_t baseid; struct komodo_state *sp; |
|
|
|
if ( ASSETCHAINS_SYMBOL[0] == 0 ) |
|
|
|
{ |
|
|
|
strcpy(symbol,"KMD"); |
|
|
|
strcpy(dest,"BTC"); |
|
|
|
sp = &KOMODO_STATES[0]; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
strcpy(symbol,ASSETCHAINS_SYMBOL); |
|
|
|
strcpy(dest,"KMD"); |
|
|
|
if ( (baseid= komodo_baseid(ASSETCHAINS_SYMBOL)) >= 0 ) |
|
|
|
sp = &KOMODO_STATES[baseid]; |
|
|
|
else |
|
|
|
{ |
|
|
|
fprintf(stderr,"komodo_stateupdate.(%s) not supported\n",ASSETCHAINS_SYMBOL); |
|
|
|
return(0); |
|
|
|
} |
|
|
|
} |
|
|
|
return(sp); |
|
|
|
} |
|
|
|