From 5ab256629010fd438db0b25e54a8d836fc0712a6 Mon Sep 17 00:00:00 2001 From: Sergey Nazarov Date: Thu, 4 Apr 2019 13:56:01 +0300 Subject: [PATCH] NODE-1554: Return correct number of signatures in blockIdsAfter (#2137) --- src/main/scala/com/wavesplatform/database/LevelDBWriter.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/com/wavesplatform/database/LevelDBWriter.scala b/src/main/scala/com/wavesplatform/database/LevelDBWriter.scala index 3b8ca25c97f..affa79c3011 100644 --- a/src/main/scala/com/wavesplatform/database/LevelDBWriter.scala +++ b/src/main/scala/com/wavesplatform/database/LevelDBWriter.scala @@ -853,7 +853,7 @@ class LevelDBWriter(writableDB: DB, override def blockIdsAfter(parentSignature: ByteStr, howMany: Int): Option[Seq[ByteStr]] = readOnly { db => db.get(Keys.heightOf(parentSignature)).map { parentHeight => - (parentHeight + 1 until (parentHeight + howMany)) + (parentHeight + 1 to (parentHeight + howMany)) .map { h => val height = Height(h) db.get(Keys.blockHeaderAndSizeAt(height))