diff --git a/node/src/main/scala/com/wavesplatform/mining/BlockChallenger.scala b/node/src/main/scala/com/wavesplatform/mining/BlockChallenger.scala index 15808225ea..31c9122141 100644 --- a/node/src/main/scala/com/wavesplatform/mining/BlockChallenger.scala +++ b/node/src/main/scala/com/wavesplatform/mining/BlockChallenger.scala @@ -166,6 +166,11 @@ class BlockChallengerImpl( allAccounts <- getChallengingAccounts(challengedBlock.sender.toAddress) (acc, delay) <- pickBestAccount(allAccounts) blockTime = prevBlockHeader.timestamp + delay + _ <- Either.cond( + blockTime < challengedBlock.header.timestamp, + (), + GenericError(s"Challenging block timestamp ($blockTime) is not better than challenged block timestamp (${challengedBlock.header.timestamp})") + ) consensusData <- pos.consensusData( acc,