com.digitalasset.canton.sequencing.client
SequencedEventValidator
Companion trait SequencedEventValidator
object SequencedEventValidator extends HasLoggerName
- Alphabetic
- By Inheritance
- SequencedEventValidator
- HasLoggerName
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class NoDynamicSynchronizerParameters(error: String) extends TopologyTimestampVerificationError with Product with Serializable
- type TopologyTimestampAfterSequencingTime = TopologyTimestampAfterSequencingTime.type
- final case class TopologyTimestampTooOld(tolerance: NonNegativeFiniteDuration) extends TopologyTimestampVerificationError with Product with Serializable
- sealed trait TopologyTimestampVerificationError extends Product with Serializable with PrettyPrinting
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- implicit def errorLoggingContextFromNamedLoggingContext(implicit loggingContext: NamedLoggingContext): ErrorLoggingContext
Convert a com.digitalasset.canton.logging.NamedLoggingContext into an com.digitalasset.canton.logging.ErrorLoggingContext to fix the logger name to the current class name.
Convert a com.digitalasset.canton.logging.NamedLoggingContext into an com.digitalasset.canton.logging.ErrorLoggingContext to fix the logger name to the current class name.
- Attributes
- protected
- Definition Classes
- HasLoggerName
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit def loggerNameFromThisClass: LoggerNameFromClass
- Attributes
- protected
- Definition Classes
- HasLoggerName
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noValidation(synchronizerId: SynchronizerId, warn: Boolean = true)(implicit loggingContext: NamedLoggingContext): SequencedEventValidator
Do not validate sequenced events.
Do not validate sequenced events. Only use it in case of a programming error and the need to unblock a deployment or if you blindly trust the sequencer.
- warn
whether to log a warning when used
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def validateTopologyTimestamp(syncCryptoApi: SyncCryptoClient[SyncCryptoApi], topologyTimestamp: CantonTimestamp, sequencingTimestamp: CantonTimestamp, latestTopologyClientTimestamp: Option[CantonTimestamp], protocolVersion: ProtocolVersion, warnIfApproximate: Boolean, getTolerance: (DynamicSynchronizerParametersWithValidity) => NonNegativeFiniteDuration)(implicit loggingContext: NamedLoggingContext, executionContext: ExecutionContext, closeContext: CloseContext): EitherT[FutureUnlessShutdown, TopologyTimestampVerificationError, SyncCryptoApi]
Validates the requested topology timestamp against the sequencing timestamp and the com.digitalasset.canton.protocol.DynamicSynchronizerParameters.sequencerTopologyTimestampTolerance of the synchronizer parameters valid at the requested topology timestamp.
Validates the requested topology timestamp against the sequencing timestamp and the com.digitalasset.canton.protocol.DynamicSynchronizerParameters.sequencerTopologyTimestampTolerance of the synchronizer parameters valid at the requested topology timestamp.
- latestTopologyClientTimestamp
The timestamp of an earlier event sent to the topology client such that no topology update has happened between this timestamp (exclusive) and the sequencing timestamp (exclusive).
- warnIfApproximate
Whether to emit a warning if an approximate topology snapshot is used
- returns
scala.Left$ if the topology timestamp is after the sequencing timestamp or the sequencing timestamp is after the topology timestamp by more than the com.digitalasset.canton.protocol.DynamicSynchronizerParameters.sequencerTopologyTimestampTolerance valid at the topology timestamp. scala.Right$ the topology snapshot that can be used for signing the event and verifying the signature on the event;
- 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])
- case object TopologyTimestampAfterSequencingTime extends TopologyTimestampVerificationError with Product with Serializable