From f0731bd7966cd29765cdf3a468a8cab0e0f026ff Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 21 Aug 2018 07:21:34 -1100 Subject: [PATCH] Debugs --- src/cc/faucet.cpp | 2 +- src/main.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/cc/faucet.cpp b/src/cc/faucet.cpp index 53bf8b422..69a87f740 100644 --- a/src/cc/faucet.cpp +++ b/src/cc/faucet.cpp @@ -150,7 +150,7 @@ int64_t AddFaucetInputs(struct CCcontract_info *cp,CMutableTransaction &mtx,CPub { txid = it->first.txhash; vout = (int32_t)it->first.index; - char str[65]; fprintf(stderr,"check %s/v%d %.8f\n",uint256_str(str,txid),vout,(double)it->second.satoshis/COIN); + char str[65]; fprintf(stderr,"check %s/v%d %.8f`\n",uint256_str(str,txid),vout,(double)it->second.satoshis/COIN); // no need to prevent dup if ( GetTransaction(txid,vintx,hashBlock,false) != 0 ) { diff --git a/src/main.cpp b/src/main.cpp index 548ce2011..b7f57e678 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -598,10 +598,10 @@ UniValue komodo_snapshot(int top) if ( pblocktree != 0 ) { result = pblocktree->Snapshot(top); } else { - fprintf(stderr,"null pblocktree start with -addressindex=true\n"); + fprintf(stderr,"null pblocktree start with -addressindex=1\n"); } } else { - fprintf(stderr,"getsnapshot requires -addressindex=true\n"); + fprintf(stderr,"getsnapshot requires -addressindex=1\n"); } return(result); } @@ -5334,9 +5334,10 @@ bool InitBlockIndex() { // Use the provided setting for -timestampindex in the new database fTimestampIndex = GetBoolArg("-timestampindex", DEFAULT_TIMESTAMPINDEX); pblocktree->WriteFlag("timestampindex", fTimestampIndex); - + fSpentIndex = GetBoolArg("-spentindex", DEFAULT_SPENTINDEX); pblocktree->WriteFlag("spentindex", fSpentIndex); + fprintf(stderr,"fAddressIndex.%d/%d fSpentIndex.%d/%d\n",fAddressIndex,DEFAULT_ADDRESSINDEX,fSpentIndex,DEFAULT_SPENTINDEX); LogPrintf("Initializing databases...\n"); // Only add the genesis block if not reindexing (in which case we reuse the one already on disk)