Skip to content

Commit f9857f7

Browse files
committed
[Trivial] Remove spammy log in in StakeV1
1 parent 80414f9 commit f9857f7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/kernel.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,10 @@ bool StakeV1(const CBlockIndex* pindexPrev, CStakeInput* stakeInput, const uint3
396396
minTime = prevBlockTime;
397397
unsigned int nTryTime = maxTime;
398398

399-
// check required maturity for stake
400-
if (maxTime <= minTime)
401-
return error("%s : stake age violation, nTimeBlockFrom = %d, prevBlockTime = %d -- maxTime = %d ", __func__, nTimeBlockFrom, prevBlockTime, maxTime);
399+
if (maxTime <= minTime) {
400+
// too early to stake
401+
return false;
402+
}
402403

403404
while (nTryTime > minTime) {
404405
// store a time stamp of when we last hashed on this block

0 commit comments

Comments
 (0)