Skip to content

Commit

Permalink
Merge pull request bitcoin#4 from dooglus/defaultcoin
Browse files Browse the repository at this point in the history
Defaultcoin
  • Loading branch information
l0rdicon committed Oct 19, 2018
2 parents f3ad655 + f90a61a commit 1a0cd4f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3235,7 +3235,13 @@ bool SignBlock(std::shared_ptr<CBlock> pblock, CWallet& wallet, const CAmount& n
EnsureLowS(pblock->vchBlockSig) &&
CheckHeaderPoS(*pblock, Params().GetConsensus());
} else {
LogPrintf("found stake, but cannot use it\n");
LogPrintf("found stake, but cannot use it : txCoinStake.nTime (%d) < max(%d+1, PastDrift(%d, %d+1) = %d) = %d\n",
txCoinStake.nTime,
pindexBestHeader->GetPastTimeLimit(Params().GetConsensus().nProtocolV2Height),
pindexBestHeader->GetBlockTime(),
pindexBestHeader->nHeight,
PastDrift(pindexBestHeader->GetBlockTime(), pindexBestHeader->nHeight+1, Params().GetConsensus()),
std::max(pindexBestHeader->GetPastTimeLimit( Params().GetConsensus().nProtocolV2Height )+1, PastDrift(pindexBestHeader->GetBlockTime(), pindexBestHeader->nHeight+1, Params().GetConsensus())));
}
}
nLastCoinStakeSearchInterval = nSearchTime - nLastCoinStakeSearchTime;
Expand Down

0 comments on commit 1a0cd4f

Please sign in to comment.