Browse Source

Debugs

pull/4/head
jl777 6 years ago
parent
commit
f0731bd796
  1. 2
      src/cc/faucet.cpp
  2. 7
      src/main.cpp

2
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 )
{

7
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)

Loading…
Cancel
Save