class DbSequencerBlockStore extends SequencerBlockStore with NamedLogging
- Alphabetic
- By Inheritance
- DbSequencerBlockStore
- NamedLogging
- SequencerBlockStore
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new DbSequencerBlockStore(storage: DbStorage, loggerFactory: NamedLoggerFactory)(implicit ec: ExecutionContext)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addBlockUpdates(blockHeight: Long, newMembers: MemberTimestamps, events: Seq[MemberSignedEvents], acknowledgments: MemberTimestamps, membersDisabled: Seq[Member])(implicit traceContext: TraceContext): Future[Unit]
Store all events that happened within the block with the given height.
Store all events that happened within the block with the given height. It is assumed that this will be called sequentially for blocks in monotonically increasing order of height.
- blockHeight
The current block height, which is assumed to be monotonically increasing by one
- newMembers
new members with their registration timestamps
- events
new sequencer events
- acknowledgments
new member acknowledgements. non increasing ones are ignored
- membersDisabled
members being disabled
- Definition Classes
- DbSequencerBlockStore → SequencerBlockStore
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getInitialState(implicit traceContext: TraceContext): Future[BlockEphemeralState]
Get initial state from which this sequencer node supports serving requests.
Get initial state from which this sequencer node supports serving requests. The member counters returned as part of this initial state indicate the minimum counters that this sequencer supports serving requests from. If a member is not included in these counters, it means that this sequencer node supports serving requests from the initial counter for that member.
- Definition Classes
- DbSequencerBlockStore → SequencerBlockStore
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def logger: TracedLogger
- Attributes
- protected
- Definition Classes
- NamedLogging
- val loggerFactory: NamedLoggerFactory
- Attributes
- protected
- Definition Classes
- DbSequencerBlockStore → NamedLogging
- implicit def loggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
- Attributes
- protected
- Definition Classes
- NamedLogging
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noTracingLogger: Logger
- Attributes
- protected
- Definition Classes
- NamedLogging
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def prune(requestedTimestamp: CantonTimestamp)(implicit traceContext: TraceContext): Future[String]
- Definition Classes
- DbSequencerBlockStore → SequencerBlockStore
- def pruningStatus(now: CantonTimestamp)(implicit traceContext: TraceContext): Future[SequencerPruningStatus]
- Definition Classes
- DbSequencerBlockStore → SequencerBlockStore
- def readHead(implicit traceContext: TraceContext): Future[BlockEphemeralState]
The current state of the sequencer, which can be used when the node is restarted to deterministically derive the following counters and timestamps.
The current state of the sequencer, which can be used when the node is restarted to deterministically derive the following counters and timestamps.
- Definition Classes
- DbSequencerBlockStore → SequencerBlockStore
- def readRange(member: Member, startInclusive: SequencerCounter, endExclusive: SequencerCounter)(implicit traceContext: TraceContext): Source[OrdinarySerializedEvent, NotUsed]
Serve events for member with the given counter range.
Serve events for member with the given counter range.
- Definition Classes
- DbSequencerBlockStore → SequencerBlockStore
- def readStateForBlockContainingTimestamp(timestamp: CantonTimestamp)(implicit traceContext: TraceContext): EitherT[Future, InvalidTimestamp, BlockEphemeralState]
The state at the end of the block that contains the given timestamp.
The state at the end of the block that contains the given timestamp. This will typically be used to inform other sequencer nodes being initialized of the initial state they should use based on the timestamp they provide which is typically the timestamp of their signing key.
- Definition Classes
- DbSequencerBlockStore → SequencerBlockStore
- def setInitialState(initial: BlockEphemeralState)(implicit traceContext: TraceContext): Future[Unit]
Set initial state of the sequencer node from which it supports serving requests.
Set initial state of the sequencer node from which it supports serving requests. This should be called at most once. If not called, it means this sequencer node can server requests from genesis.
- Definition Classes
- DbSequencerBlockStore → SequencerBlockStore
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])