HotStuffRuntimeScheduling

org.sigilaris.node.jvm.runtime.consensus.hotstuff.HotStuffRuntimeScheduling

Runtime scheduling utilities for validating proposal views against block queries.

Attributes

Source
RuntimeScheduling.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def allowAll[F[_] : Sync]: Proposal => F[Either[HotStuffValidationFailure, Unit]]

Creates a proposal validation function that accepts all proposals without checks.

Creates a proposal validation function that accepts all proposals without checks.

Attributes

Source
RuntimeScheduling.scala
def proposalValidationFromBlockQuery[F[_] : Sync, TxRef : ByteEncoder : Hash, ResultRef : ByteEncoder, Event : ByteEncoder](validatorSet: ValidatorSet, blockQuery: BlockQuery[F, TxRef, ResultRef, Event])(classifyTx: TxRef => SchedulingClassification): Proposal => F[Either[HotStuffValidationFailure, Unit]]

Creates a proposal validation function backed by a block query.

Creates a proposal validation function backed by a block query.

Attributes

Source
RuntimeScheduling.scala
def validateProposalViewFromBlockQuery[F[_] : Sync, TxRef : ByteEncoder : Hash, ResultRef : ByteEncoder, Event : ByteEncoder](proposal: Proposal, validatorSet: ValidatorSet, blockQuery: BlockQuery[F, TxRef, ResultRef, Event])(classifyTx: TxRef => SchedulingClassification): F[Either[HotStuffValidationFailure, BlockView[TxRef, ResultRef, Event]]]

Validates a proposal's block view by loading it from the block query and checking scheduling compliance.

Validates a proposal's block view by loading it from the block query and checking scheduling compliance.

Attributes

Source
RuntimeScheduling.scala