Test
This commit is contained in:
@@ -497,7 +497,7 @@ void komodo_connectblock(CBlockIndex *pindex,CBlock& block)
|
||||
fprintf(stderr,"unexpected null komodostateptr.[%s]\n",ASSETCHAINS_SYMBOL);
|
||||
return;
|
||||
}
|
||||
fprintf(stderr,"%s connect.%d\n",ASSETCHAINS_SYMBOL,pindex->nHeight);
|
||||
//fprintf(stderr,"%s connect.%d\n",ASSETCHAINS_SYMBOL,pindex->nHeight);
|
||||
numnotaries = komodo_notaries(pubkeys,pindex->nHeight);
|
||||
calc_rmd160_sha256(rmd160,pubkeys[0],33);
|
||||
if ( pindex->nHeight > hwmheight )
|
||||
|
||||
@@ -553,7 +553,7 @@ uint32_t komodo_txtime(uint256 hash)
|
||||
void komodo_disconnect(CBlockIndex *pindex,CBlock& block)
|
||||
{
|
||||
char symbol[16],dest[16]; struct komodo_state *sp;
|
||||
fprintf(stderr,"disconnect ht.%d\n",pindex->nHeight);
|
||||
//fprintf(stderr,"disconnect ht.%d\n",pindex->nHeight);
|
||||
komodo_init(pindex->nHeight);
|
||||
if ( (sp= komodo_stateptr(symbol,dest)) != 0 )
|
||||
{
|
||||
|
||||
@@ -2231,7 +2231,7 @@ static int64_t nTimeTotal = 0;
|
||||
bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pindex, CCoinsViewCache& view, bool fJustCheck)
|
||||
{
|
||||
const CChainParams& chainparams = Params();
|
||||
fprintf(stderr,"connectblock ht.%d\n",(int32_t)pindex->nHeight);
|
||||
//fprintf(stderr,"connectblock ht.%d\n",(int32_t)pindex->nHeight);
|
||||
AssertLockHeld(cs_main);
|
||||
/*<<<<<<< HEA
|
||||
// Check it again in case a previous version let a bad block in
|
||||
@@ -2660,7 +2660,7 @@ bool static DisconnectTip(CValidationState &state) {
|
||||
SyncWithWallets(tx, NULL);
|
||||
}
|
||||
// Update cached incremental witnesses
|
||||
fprintf(stderr,"chaintip false\n");
|
||||
//fprintf(stderr,"chaintip false\n");
|
||||
GetMainSignals().ChainTip(pindexDelete, &block, newTree, false);
|
||||
return true;
|
||||
}
|
||||
@@ -2731,7 +2731,7 @@ bool static ConnectTip(CValidationState &state, CBlockIndex *pindexNew, CBlock *
|
||||
SyncWithWallets(tx, pblock);
|
||||
}
|
||||
// Update cached incremental witnesses
|
||||
fprintf(stderr,"chaintip true\n");
|
||||
//fprintf(stderr,"chaintip true\n");
|
||||
GetMainSignals().ChainTip(pindexNew, pblock, oldTree, true);
|
||||
|
||||
int64_t nTime6 = GetTimeMicros(); nTimePostConnect += nTime6 - nTime5; nTimeTotal += nTime6 - nTime1;
|
||||
|
||||
@@ -643,7 +643,7 @@ void CWallet::IncrementNoteWitnesses(const CBlockIndex* pindex,
|
||||
const CBlock* pblockIn,
|
||||
ZCIncrementalMerkleTree& tree)
|
||||
{
|
||||
fprintf(stderr,"A increment witness cache -> %d\n",(int32_t)nWitnessCacheSize);
|
||||
//fprintf(stderr,"A increment witness cache -> %d\n",(int32_t)nWitnessCacheSize);
|
||||
{
|
||||
LOCK(cs_wallet);
|
||||
for (std::pair<const uint256, CWalletTx>& wtxItem : mapWallet) {
|
||||
@@ -786,7 +786,7 @@ void CWallet::DecrementNoteWitnesses(const CBlockIndex* pindex)
|
||||
}
|
||||
}
|
||||
}
|
||||
fprintf(stderr,"decrement witness cache -> %d\n",(int32_t)nWitnessCacheSize);
|
||||
//fprintf(stderr,"decrement witness cache -> %d\n",(int32_t)nWitnessCacheSize);
|
||||
if ( nWitnessCacheSize > 1 )
|
||||
nWitnessCacheSize -= 1;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user