Skip to content

Commit 8370f01

Browse files
committed
Merge remote-tracking branch 'origin/devel' into devel
2 parents 0e33365 + c407399 commit 8370f01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scorex-transaction/src/main/scala/scorex/transaction/SimpleTransactionModule.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class SimpleTransactionModule(implicit val settings: TransactionSettings with Se
174174

175175
override def isValid(block: Block): Boolean = {
176176
val lastBlockTs = blockStorage.history.lastBlock.timestampField.value
177-
lazy val txsAreNew = block.transactions.forall(tx => (lastBlockTs - tx.timestamp).seconds <= MaxTxAndBlockDiff)
177+
lazy val txsAreNew = block.transactions.forall(tx => (lastBlockTs - tx.timestamp).millis <= MaxTxAndBlockDiff)
178178
lazy val blockIsValid = blockStorage.state.isValid(block.transactions, blockStorage.history.heightOf(block))
179179
txsAreNew && blockIsValid
180180
}

0 commit comments

Comments
 (0)