Skip to content

Commit

Permalink
fixed snapshot offset
Browse files Browse the repository at this point in the history
  • Loading branch information
phearnot committed Dec 20, 2023
1 parent 2cbd266 commit c03a94f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/src/main/scala/com/wavesplatform/Importer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -372,12 +372,12 @@ object Importer extends ScorexLogging {

var totalSize = 0L
rdb.db.iterateOver(KeyTags.NthTransactionStateSnapshotAtHeight) { e =>
totalSize += e.getValue.length
totalSize += (e.getValue.length + 4)
}

val snapshotsOffset = totalSize

blocksOffset -> snapshotsOffset.toLong
blocksOffset -> snapshotsOffset
case _ => 0L -> 0L
}
val blocksInputStream = new BufferedInputStream(initFileStream(importOptions.blockchainFile, blocksFileOffset), 2 * 1024 * 1024)
Expand Down

0 comments on commit c03a94f

Please sign in to comment.