BlockCoverage

scalus.cardano.node.stream.internal.BlockCoverage
See theBlockCoverage companion enum
object BlockCoverage

Attributes

Companion
enum
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def covers(coverage: BlockCoverage, source: UtxoSource): Boolean

Whether a block with this coverage is authoritative for a query.

Whether a block with this coverage is authoritative for a query.

The recursion mirrors SubscriptionSupport.isIndexed, and for the same reasons: a union is covered only if every arm is, because the events we would miss are exactly the ones the uncovered arm would have found; an intersection needs just one covered arm, because that arm's results contain every candidate and the other arm post-filters data already in hand.

Attributes