diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 4e036f69a..5be8da5e2 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -434,20 +434,6 @@ int32_t komodo_verifynotarization(char *symbol,char *dest,int32_t height,int32_t { if ( ASSETCHAINS_SYMBOL[0] != 0 ) jsonstr = komodo_issuemethod(KMDUSERPASS,(char *)"getrawtransaction",params,7771); - else - { - CTransaction tx; uint256 hashBlock; int32_t numvouts,len; uint8_t *ptr; - if ( GetTransaction(NOTARIZED_DESTTXID,tx,hashBlock,true) == 0 ) - return(-1); - if ( (numvouts= tx.vout.size()) > 0 ) - { - ptr = (uint8_t *)tx.vout[numvouts - 1].scriptPubKey.data(); - len = tx.vout[numvouts - 1].scriptPubKey.size(); - retval = komodo_verifynotarizedscript(height,ptr,len,NOTARIZED_HASH); - printf("direct verify ht.%d -> %d\n",height,retval); - return(retval); - } - } } //else jsonstr = _dex_getrawtransaction(); else return(0); // need universal way to issue DEX* API, since notaries mine most blocks, this ok diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 5e13283e1..06fe8cd1b 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -1147,7 +1147,9 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 { if ( baseids[i] < 0 ) { - printf("%d of %d illegal baseid.%d\n",i,n,baseids[i]); + static uint32_t counter; + if ( counter++ < 3 ) + printf("%d of %d illegal baseid.%d, this can be ignored\n",i,n,baseids[i]); continue; } bitcoin_address(coinaddr,60,&rmd160s[i*20],20); @@ -1384,6 +1386,8 @@ void komodo_passport_iteration() return; }*/ starttime = (uint32_t)time(NULL); + if ( lasttime == 0 ) + limit = 10; if ( 0 && starttime == lasttime ) { usleep(1000); diff --git a/src/komodo_kv.h b/src/komodo_kv.h index e121a793e..d4f6dcca2 100644 --- a/src/komodo_kv.h +++ b/src/komodo_kv.h @@ -106,7 +106,9 @@ void komodo_kvupdate(uint8_t *opretbuf,int32_t opretlen,uint64_t value) key = &opretbuf[13]; if ( keylen+13 > opretlen ) { - printf("komodo_kvupdate: keylen.%d + 13 > opretlen.%d\n",keylen,opretlen); + static uint32_t counter; + if ( counter++ < 3 ) + printf("komodo_kvupdate: keylen.%d + 13 > opretlen.%d, this can be ignored\n",keylen,opretlen); return; } valueptr = &key[keylen];