This commit is contained in:
jl777
2018-09-12 01:39:13 -11:00
parent 4084a149ed
commit 3420554d5c

View File

@@ -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 )
{