This commit is contained in:
jl777
2018-08-21 07:21:34 -11:00
parent e8d004bc20
commit f0731bd796
2 changed files with 5 additions and 4 deletions

View File

@@ -150,7 +150,7 @@ int64_t AddFaucetInputs(struct CCcontract_info *cp,CMutableTransaction &mtx,CPub
{ {
txid = it->first.txhash; txid = it->first.txhash;
vout = (int32_t)it->first.index; 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 // no need to prevent dup
if ( GetTransaction(txid,vintx,hashBlock,false) != 0 ) if ( GetTransaction(txid,vintx,hashBlock,false) != 0 )
{ {

View File

@@ -598,10 +598,10 @@ UniValue komodo_snapshot(int top)
if ( pblocktree != 0 ) { if ( pblocktree != 0 ) {
result = pblocktree->Snapshot(top); result = pblocktree->Snapshot(top);
} else { } else {
fprintf(stderr,"null pblocktree start with -addressindex=true\n"); fprintf(stderr,"null pblocktree start with -addressindex=1\n");
} }
} else { } else {
fprintf(stderr,"getsnapshot requires -addressindex=true\n"); fprintf(stderr,"getsnapshot requires -addressindex=1\n");
} }
return(result); return(result);
} }
@@ -5337,6 +5337,7 @@ bool InitBlockIndex() {
fSpentIndex = GetBoolArg("-spentindex", DEFAULT_SPENTINDEX); fSpentIndex = GetBoolArg("-spentindex", DEFAULT_SPENTINDEX);
pblocktree->WriteFlag("spentindex", fSpentIndex); pblocktree->WriteFlag("spentindex", fSpentIndex);
fprintf(stderr,"fAddressIndex.%d/%d fSpentIndex.%d/%d\n",fAddressIndex,DEFAULT_ADDRESSINDEX,fSpentIndex,DEFAULT_SPENTINDEX);
LogPrintf("Initializing databases...\n"); LogPrintf("Initializing databases...\n");
// Only add the genesis block if not reindexing (in which case we reuse the one already on disk) // Only add the genesis block if not reindexing (in which case we reuse the one already on disk)