StreamingEmulator

scalus.cardano.node.stream.StreamingEmulator
See theStreamingEmulator companion class

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def capabilities(securityParam: Int): StreamCapabilities

What an emulator honestly offers: the whole ledger is in memory, so every source is indexed and a scan costs nothing either; there is no history to replay; and there are no real blocks to hand to a block subscription.

What an emulator honestly offers: the whole ledger is in memory, so every source is indexed and a scan costs nothing either; there is no history to replay; and there are no real blocks to hand to a block subscription.

rollbackHorizon follows securityParam, and 0 means None — a linear emulator never forks, so a subscriber is entitled to assume RolledBack never arrives. A non-zero securityParam is what a test uses to say "pretend blocks settle this deep", and it becomes the declared horizon so the hub and the classifier agree on the depth.

Attributes

Block identity derived from height. Distinct per block and stable across runs, which is what a subscriber correlating or checkpointing needs; it is not a hash of anything.

Block identity derived from height. Distinct per block and stable across runs, which is what a subscriber correlating or checkpointing needs; it is not a hash of anything.

Attributes