Browse Source

Test

pass-iguana-arg
jl777 7 years ago
parent
commit
657cad761b
  1. 8
      iguana/exchanges/LP_nativeDEX.c
  2. 1
      iguana/exchanges/LP_rpc.c

8
iguana/exchanges/LP_nativeDEX.c

@ -898,7 +898,7 @@ void verusblocks(struct iguana_info *coin)
if ( bits256_nonz(hash) != 0 )
{
bits256_str(hashstr,hash);
height = 0;
height = -1;
while ( (blockjson= LP_blockjson(&height,coin->symbol,hashstr,0)) != 0 )
{
if ( (txs= jarray(&n,blockjson,"tx")) != 0 )
@ -929,8 +929,8 @@ void verusblocks(struct iguana_info *coin)
decode_hex(script,44,hexstr);
locked = ((int32_t)script[3] << 16) + ((int32_t)script[4] << 8) + script[5];
bitcoin_address(coin->symbol,firstaddr,coin->taddr,coin->pubtype,&script[10],33);
}
}
} else printf("unexpected lastvout.(%s)\n",jprint(vout1,0));
} else printf("coinbase without opret (%s)\n",jprint(vouts,0));
}
}
free_json(txobj);
@ -955,7 +955,7 @@ void verusblocks(struct iguana_info *coin)
}
else
{
printf("height.%d locked.%d PoW %s %.8f\n",height,locked,lastaddr,value);
printf("height.%d locked.%d PoW %s %.8f\n",height,locked,addr0,value);
if ( strcmp(coin->smartaddr,addr0) == 0 )
powsum += value;
}

1
iguana/exchanges/LP_rpc.c

@ -1030,6 +1030,7 @@ uint32_t LP_heighttime(char *symbol,int32_t height)
cJSON *LP_blockjson(int32_t *heightp,char *symbol,char *blockhashstr,int32_t height)
{
cJSON *json = 0; int32_t flag = 0; struct iguana_info *coin;
*heightp = 0;
if ( symbol == 0 || symbol[0] == 0 )
return(cJSON_Parse("{\"error\":\"null symbol\"}"));
coin = LP_coinfind(symbol);

Loading…
Cancel
Save