diff --git a/src/komodo.h b/src/komodo.h index 4d4604c28..0e8f8891c 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -496,7 +496,8 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block) hwmheight = pindex->nHeight; else { - printf("%s hwmheight.%d vs pindex->nHeight.%d t.%u reorg.%d\n",ASSETCHAINS_SYMBOL,hwmheight,pindex->nHeight,(uint32_t)pindex->nTime,hwmheight-pindex->nHeight); + if ( pindex->nHeight != hwmheight ) + printf("%s hwmheight.%d vs pindex->nHeight.%d t.%u reorg.%d\n",ASSETCHAINS_SYMBOL,hwmheight,pindex->nHeight,(uint32_t)pindex->nTime,hwmheight-pindex->nHeight); komodo_event_rewind(sp,symbol,pindex->nHeight); komodo_stateupdate(pindex->nHeight,0,0,0,zero,0,0,0,0,-pindex->nHeight,pindex->nTime,0,0,0,0); } diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 4ec0b0f04..10b07cd46 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -818,7 +818,7 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 if ( (pax= komodo_paxmark(height,txids[i],vouts[i],'D',height)) != 0 ) komodo_paxdelete(pax); } - } else printf("opreturn none issued?\n"); + } //else printf("opreturn none issued?\n"); } } else if ( opretbuf[0] == 'W' )//&& opretlen >= 38 ) diff --git a/src/komodo_kv.h b/src/komodo_kv.h index 07adadf2b..1ed6e1347 100644 --- a/src/komodo_kv.h +++ b/src/komodo_kv.h @@ -177,7 +177,7 @@ void komodo_kvupdate(uint8_t *opretbuf,int32_t opretlen,uint64_t value) ptr->height = height; ptr->flags = flags | 1; portable_mutex_unlock(&KOMODO_KV_mutex); - } else printf("size mismatch %d vs %d\n",opretlen,coresize); + } //else printf("size mismatch %d vs %d\n",opretlen,coresize); } else printf("insufficient fee %.8f vs %.8f flags.%d keylen.%d valuesize.%d height.%d (%02x %02x %02x) (%02x %02x %02x)\n",(double)fee/COIN,(double)value/COIN,flags,keylen,valuesize,height,key[0],key[1],key[2],valueptr[0],valueptr[1],valueptr[2]); }