Skip to content

Commit

Permalink
v5.0.11-fix1: abstract classes for BlockchainParameters and Blockchai…
Browse files Browse the repository at this point in the history
…nStateContext
  • Loading branch information
aslesarenko committed Sep 26, 2023
1 parent d98325e commit dca6181
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import special.collection.Coll
/** Blockchain context used in tx signing. */
abstract class BlockchainStateContext {
/** Fixed number (10 in Ergo) of last block headers. */
def sigmaLastHeaders: Coll[sigma.Header]
def sigmaLastHeaders: Coll[special.sigma.Header]
/** UTXO set digest from a last header (of sigmaLastHeaders). */
def previousStateDigest: Coll[Byte]
/** Returns pre-header (header without certain fields) of the current block. */
def sigmaPreHeader: sigma.PreHeader
def sigmaPreHeader: special.sigma.PreHeader
}

/** Blockchain context used in tx signing. */
case class CBlockchainStateContext(
sigmaLastHeaders: Coll[sigma.Header],
sigmaLastHeaders: Coll[special.sigma.Header],
previousStateDigest: Coll[Byte],
sigmaPreHeader: sigma.PreHeader
sigmaPreHeader: special.sigma.PreHeader
) extends BlockchainStateContext

0 comments on commit dca6181

Please sign in to comment.