InMemoryHotStuffArtifactSource

org.sigilaris.node.jvm.runtime.consensus.hotstuff.InMemoryHotStuffArtifactSource
See theInMemoryHotStuffArtifactSource companion object

In-memory implementation of a gossip artifact source and publisher for HotStuff artifacts.

Attributes

Companion
object
Source
InMemoryHotStuffGossipBridge.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

Appends an artifact to the gossip source, returning the created gossip event.

Appends an artifact to the gossip source, returning the created gossip event.

Attributes

Source
InMemoryHotStuffGossipBridge.scala
override def readAfter(chainId: ChainId, topic: GossipTopic, cursor: Option[CursorToken]): F[Either[CanonicalRejection, Vector[AvailableGossipEvent[HotStuffGossipArtifact]]]]

Reads available events after the given cursor position.

Reads available events after the given cursor position.

Value parameters

chainId

the chain to read from

cursor

optional cursor; None starts from the beginning

topic

the gossip topic

Attributes

Returns

events after the cursor, or a rejection on error

Definition Classes
Source
InMemoryHotStuffGossipBridge.scala
override def readByIds(chainId: ChainId, topic: GossipTopic, ids: Vector[StableArtifactId]): F[Vector[AvailableGossipEvent[HotStuffGossipArtifact]]]

Reads events by their stable artifact identifiers.

Reads events by their stable artifact identifiers.

Value parameters

chainId

the chain to read from

ids

the artifact identifiers to look up

topic

the gossip topic

Attributes

Returns

the matching available events

Definition Classes
Source
InMemoryHotStuffGossipBridge.scala