BlockView

org.sigilaris.node.jvm.runtime.block.BlockView
See theBlockView companion class
object BlockView

Companion for BlockView.

Attributes

Companion
class
Source
Model.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
BlockView.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def validate[TxRef : ByteEncoder, ResultRef : ByteEncoder, Event : ByteEncoder](view: BlockView[TxRef, ResultRef, Event]): Either[BlockValidationFailure, Unit]

Validates that the body root in the header matches the actual body contents.

Validates that the body root in the header matches the actual body contents.

This check is intentionally limited to the header/body commitment contract. Header-level progress rules such as genesis-parent shape or consensus-owned height linkage belong to the enclosing validation path.

Type parameters

Event

event type

ResultRef

result reference type

TxRef

transaction reference type

Value parameters

view

the block view to validate

Attributes

Returns

Right(()) if valid, or a BlockValidationFailure describing the mismatch

Source
Model.scala