From cf1aa6ab0d519c1fa63919cea7c4dca4b61bc5ba Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 8 Nov 2016 17:27:47 -0300 Subject: [PATCH] test --- src/komodo.h | 6 ++++-- src/miner.cpp | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/komodo.h b/src/komodo.h index 3cb5bf2fb..f1fa4a1ed 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -17,8 +17,10 @@ #define H_KOMODO_H // Todo: handle reorg: clear all entries above reorged height -// smooth consensus price -// +// error check redeems +// net balance limiter +// REVS and non-fiat chains +// verify: interest payment, ratification #include #include diff --git a/src/miner.cpp b/src/miner.cpp index b7af64164..4f700b514 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -114,7 +114,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn) if(!pblocktemplate.get()) return NULL; CBlock *pblock = &pblocktemplate->block; // pointer for convenience - if ( ASSETCHAINS_SYMBOL[0] != 0 ) + //if ( ASSETCHAINS_SYMBOL[0] != 0 ) fprintf(stderr,"start CreateNewBlock %s initdone.%d deposit %.8f mempool.%d RT.%u\n",ASSETCHAINS_SYMBOL,KOMODO_INITDONE,(double)komodo_paxtotal()/COIN,(int32_t)mempool.GetTotalTxSize(),KOMODO_REALTIME); while ( mempool.GetTotalTxSize() <= 0 ) { @@ -127,7 +127,7 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn) break; sleep(10); } - if ( 0 && deposits != 0 ) + //if ( 0 && deposits != 0 ) printf("miner KOMODO_DEPOSIT %llu pblock->nHeight %d mempool.GetTotalTxSize(%d)\n",(long long)komodo_paxtotal(),(int32_t)chainActive.Tip()->nHeight,(int32_t)mempool.GetTotalTxSize()); // -regtest only: allow overriding block.nVersion with