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 its blocks are real, so a block subscription gets them.

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 its blocks are real, so a block subscription gets them.

rollbackHorizon is Some(securityParam), also for 0: the emulator rolls back on rollback(n) and on a fork switch, so None, "never signals rollbacks", would not be true. Some(0) lets a noRollback subscriber wait for nothing. A StreamingEmulator passes its own securityParam argument, spec [SY-6].

Attributes

Deprecated methods

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

Deprecated
[Since version 1.4.1] the stream delivers the emulator\'s real blocks, named by their header hash