Skip to content

Commit

Permalink
NODE-1554: Return correct number of signatures in blockIdsAfter (#2137)
Browse files Browse the repository at this point in the history
  • Loading branch information
phearnot authored Apr 4, 2019
1 parent 25636aa commit 5ab2566
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 5ab2566

Please sign in to comment.