From 969b6343a304d4aefb5e346f426db055ef6173a4 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 30 Oct 2016 18:14:01 -0300 Subject: [PATCH] test --- src/komodo_bitcoind.h | 10 +++++----- src/komodo_gateway.h | 6 +++--- src/miner.cpp | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/komodo_bitcoind.h b/src/komodo_bitcoind.h index 49ea94c49..98d331bcf 100644 --- a/src/komodo_bitcoind.h +++ b/src/komodo_bitcoind.h @@ -364,12 +364,12 @@ uint32_t komodo_txtime(uint256 hash) void komodo_disconnect(CBlockIndex *pindex,CBlock& block) { - int32_t i; uint256 hash; + //int32_t i; uint256 hash; komodo_init(); - hash = block.GetHash(); - for (i=0; i<32; i++) - printf("%02x",((uint8_t *)&hash)[i]); - printf(" <- disconnect block\n"); + //hash = block.GetHash(); + //for (i=0; i<32; i++) + // printf("%02x",((uint8_t *)&hash)[i]); + //printf(" <- disconnect block\n"); //uint256 zero; //printf("disconnect ht.%d\n",pindex->nHeight); //memset(&zero,0,sizeof(zero)); diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 379da62ec..338c4073b 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -261,9 +261,9 @@ const char *komodo_opreturn(int32_t height,uint64_t value,uint8_t *opretbuf,int3 if ( komodo_gateway_depositremove(txids[i],vouts[i]) == 0 ) printf("error removing deposit\n"); } - for (i=0; i<32; i++) - printf("%02x",((uint8_t *)&txid)[i]); - printf(" v%d komodo_opreturn[%c]: ht.%d %.8f opretlen.%d\n",vout,opretbuf[0],height,dstr(value),opretlen); + //for (i=0; i<32; i++) + // printf("%02x",((uint8_t *)&txid)[i]); + //printf(" v%d komodo_opreturn[%c]: ht.%d %.8f opretlen.%d\n",vout,opretbuf[0],height,dstr(value),opretlen); } } } diff --git a/src/miner.cpp b/src/miner.cpp index c1a585226..c8c273f23 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -115,11 +115,11 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn) while ( ASSETCHAINS_SYMBOL[0] != 0 && chainActive.Tip()->nHeight > 10 && mempool.GetTotalTxSize() <= 0 ) { sleep(10); + printf("KOMODO_DEPOSIT %llu pblock->nHeight %d mempool.GetTotalTxSize(%d)\n",(long long)KOMODO_DEPOSIT,(int32_t)chainActive.Tip()->nHeight,(int32_t)mempool.GetTotalTxSize()); if ( KOMODO_INITDONE == 0 || time(NULL) < KOMODO_INITDONE+60 ) continue; if ( KOMODO_DEPOSIT != 0 ) { - printf("KOMODO_DEPOSIT %llu pblock->nHeight %d mempool.GetTotalTxSize(%d)\n",(long long)KOMODO_DEPOSIT,(int32_t)chainActive.Tip()->nHeight,(int32_t)mempool.GetTotalTxSize()); break; } }