class InitialTopologySnapshotValidator extends NamedLogging

Validates an initial topology snapshot by:

  • running transaction authorization validation
  • deduplicating topology transactions
  • removing superfluous signatures
  • checking that serials are strictly monotonic
  • checking that rejected transactions in the initial snapshot also are rejected in stored snapshot
  • checking that the effective times valid_from and valid_until of the transactions are the same in the initial snapshot and the stored snapshot

Also compares the computed effective time with the effective provided in the snapshot.

Any inconsistency between the topology snapshot and the outcome of the validation is reported.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InitialTopologySnapshotValidator
  2. NamedLogging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new InitialTopologySnapshotValidator(pureCrypto: CryptoPureApi, store: TopologyStore[TopologyStoreId], staticSynchronizerParameters: Option[StaticSynchronizerParameters], validateInitialSnapshot: Boolean, loggerFactory: NamedLoggerFactory, cleanupTopologySnapshot: Boolean = false)(implicit ec: ExecutionContext, materializer: Materializer)

    validateInitialSnapshot

    if false, the validation is skipped and the snapshot is directly imported. this is risky as it might create a fork if the validation was changed. therefore, we only use this with great care. the proper solution is to make validation so fast that it doesn't impact performance.

    cleanupTopologySnapshot

    if true, then we will clean up the topology snapshot (used for hard migration to clean up the genesis state)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. implicit def errorLoggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def logger: TracedLogger
    Attributes
    protected
    Definition Classes
    NamedLogging
  13. val loggerFactory: NamedLoggerFactory
  14. implicit def namedLoggingContext(implicit traceContext: TraceContext): NamedLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def noTracingLogger: Logger
    Attributes
    protected
    Definition Classes
    NamedLogging
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. val stateProcessor: TopologyStateProcessor
    Attributes
    protected
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def validateAndApplyInitialTopologySnapshot(initialSnapshot: GenericStoredTopologyTransactions)(implicit traceContext: TraceContext): EitherT[FutureUnlessShutdown, String, Unit]

    Runs the topology snapshot through the normal processing/validation pipeline of the TopologyStateProcessor.

    Runs the topology snapshot through the normal processing/validation pipeline of the TopologyStateProcessor.

    NOTICE:

    • the preparation and pre-processing of the provided topology snapshot is only done to support a wider variety of (legacy) topology snapshots.
    • The outcome of the validation and import is compared with the expected outcome of the snapshot. Any inconsistencies are raised as errors. This serves as a security barrier.
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from NamedLogging

Inherited from AnyRef

Inherited from Any

Ungrouped