ChainEvent

scalus.cardano.node.stream.internal.ChainEvent
enum ChainEvent

One thing that happened to the chain, as a backend reports it.

Deliberately normalised rather than backend-shaped. If a follower emitted its own wire types the driver below would need a branch per backend and the sharing would evaporate — the whole point is that everything downstream of this type is written once. Backend-shaped payloads are still worth keeping where they earn their place: recorded at the HTTP/WebSocket boundary, as test fixtures.

Public, since EmulatorBase.diff returns it, spec [SY-1].

Attributes

Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

final case class RollBackward(to: ChainTip)

The chain switched to a different fork, and the follower can reconcile it. A follower that detects a reorg it cannot reconcile fails its source instead — see scalus.cardano.infra.ResyncRequiredException.

The chain switched to a different fork, and the follower can reconcile it. A follower that detects a reorg it cannot reconcile fails its source instead — see scalus.cardano.infra.ResyncRequiredException.

Attributes

final case class RollForward(block: AppliedBlock)

The chain advanced. See AppliedBlock for what a partial observation must state.

The chain advanced. See AppliedBlock for what a partial observation must state.

Attributes