Browse Source

test

etomic
jl777 8 years ago
parent
commit
c66bed5f59
  1. 6
      iguana/dpow/dpow_rpc.c
  2. 1
      iguana/iguana_notary.c

6
iguana/dpow/dpow_rpc.c

@ -407,7 +407,7 @@ cJSON *dpow_listunspent(struct supernet_info *myinfo,struct iguana_info *coin,ch
cJSON *dpow_listspent(struct supernet_info *myinfo,struct iguana_info *coin,char *coinaddr)
{
if ( myinfo->IAMNOTARY != 0 )
if ( myinfo->DEXEXPLORER != 0 )
return(kmd_listspent(coin,coinaddr));
else
{
@ -417,7 +417,7 @@ cJSON *dpow_listspent(struct supernet_info *myinfo,struct iguana_info *coin,char
cJSON *dpow_getbalance(struct supernet_info *myinfo,struct iguana_info *coin,char *coinaddr)
{
if ( myinfo->IAMNOTARY != 0 )
if ( myinfo->DEXEXPLORER != 0 )
return(kmd_getbalance(coin,coinaddr));
else
{
@ -427,7 +427,7 @@ cJSON *dpow_getbalance(struct supernet_info *myinfo,struct iguana_info *coin,cha
cJSON *dpow_gettxin(struct supernet_info *myinfo,struct iguana_info *coin,bits256 txid,int32_t vout)
{
if ( myinfo->IAMNOTARY != 0 )
if ( myinfo->DEXEXPLORER != 0 )
return(kmd_gettxin(coin,txid,vout));
else
{

1
iguana/iguana_notary.c

@ -766,6 +766,7 @@ TWO_STRINGS(dex,getbalance,symbol,address)
{
if ( symbol != 0 && address != 0 && (coin= iguana_coinfind(symbol)) != 0 && coin->DEXEXPLORER != 0 )
return(jprint(kmd_getbalance(coin,address),1));
else printf("DEXEXPLORER.%d\n",coin->DEXEXPLORER);
}
if ( symbol != 0 && address != 0 )
return(_dex_getbalance(myinfo,symbol,address));

Loading…
Cancel
Save