We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0e33365 + c407399 commit 8370f01Copy full SHA for 8370f01
scorex-transaction/src/main/scala/scorex/transaction/SimpleTransactionModule.scala
@@ -174,7 +174,7 @@ class SimpleTransactionModule(implicit val settings: TransactionSettings with Se
174
175
override def isValid(block: Block): Boolean = {
176
val lastBlockTs = blockStorage.history.lastBlock.timestampField.value
177
- lazy val txsAreNew = block.transactions.forall(tx => (lastBlockTs - tx.timestamp).seconds <= MaxTxAndBlockDiff)
+ lazy val txsAreNew = block.transactions.forall(tx => (lastBlockTs - tx.timestamp).millis <= MaxTxAndBlockDiff)
178
lazy val blockIsValid = blockStorage.state.isValid(block.transactions, blockStorage.history.heightOf(block))
179
txsAreNew && blockIsValid
180
}
0 commit comments