All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wavesplatform.database.Storage.scala Maven / Gradle / Ivy

The newest version!
package com.wavesplatform.database

import com.wavesplatform.block.{Block, BlockSnapshot}
import com.wavesplatform.common.state.ByteStr
import com.wavesplatform.state.StateSnapshot

trait Storage {
  def append(
      snapshot: StateSnapshot,
      carryFee: Long,
      totalFee: Long,
      reward: Option[Long],
      hitSource: ByteStr,
      computedBlockStateHash: ByteStr,
      block: Block
  ): Unit
  def lastBlock: Option[Block]
  def rollbackTo(height: Int): Either[String, Seq[(Block, ByteStr, Option[BlockSnapshot])]]
  def safeRollbackHeight: Int
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy