Browse Source

Test

pull/4/head
jl777 6 years ago
parent
commit
3420554d5c
  1. 5
      src/cc/dapps/oraclefeed.c

5
src/cc/dapps/oraclefeed.c

@ -508,9 +508,8 @@ int32_t main(int32_t argc,char **argv)
while ( 1 )
{
retstr = 0;
if ( (clijson= get_komodocli(&retstr,acname,"oraclesinfo",oraclestr,"","")) != 0 )
if ( acheight < (get_KMDheight(acname) - 10) && (clijson= get_komodocli(&retstr,acname,"oraclesinfo",oraclestr,"","")) != 0 )
{
acheight = height;
if ( (regjson= jarray(&n,clijson,"registered")) != 0 )
{
for (i=0; i<n; i++)
@ -522,7 +521,7 @@ int32_t main(int32_t argc,char **argv)
{
if ( (clijson2= get_komodocli(&retstr2,acname,"oraclesdata",oraclestr,hexstr,"")) != 0 )
{
printf("data.(%s)\n",jprint(clijson2,0));
//printf("data.(%s)\n",jprint(clijson2,0));
txid = komodobroadcast(acname,clijson2);
if ( bits256_nonz(txid) != 0 )
{

Loading…
Cancel
Save