case class BesuTxPoolNonceManager(conf: EthereumLedgerNodeConfig[AlreadyDeployed], loggerFactory: NamedLoggerFactory) extends NamedLogging with NonceManager with Product with Serializable

Transaction manager for Besu networks. Relies on the Besu API method txpool_besuPendingTransactions. The most important method is hydrate: it fetches the complete transaction pool and the number of accepted transactions so far. Based on that, it computes the next nonces which should be used.

Whenever an Ethereum transaction fails for any reason, we hydrate the state of the transaction manager before returning a result to getNonce.

Annotations
@SuppressWarnings()
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BesuTxPoolNonceManager
  2. NonceManager
  3. Serializable
  4. Product
  5. Equals
  6. NamedLogging
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new BesuTxPoolNonceManager(conf: EthereumLedgerNodeConfig[AlreadyDeployed], loggerFactory: NamedLoggerFactory)

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() @HotSpotIntrinsicCandidate()
  6. val conf: EthereumLedgerNodeConfig[AlreadyDeployed]
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. lazy val ethereumAccount: Credentials

    The Ethereum account that nonces are being managed for.

    The Ethereum account that nonces are being managed for.

    Attributes
    protected
    Definition Classes
    BesuTxPoolNonceManagerNonceManager
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def getNonce: BigInteger

    Return the next nonce that should be used for an Ethereum transaction by ethereumAccount.

    Return the next nonce that should be used for an Ethereum transaction by ethereumAccount. Needs to be thread-safe, i.e., needs to return correctly return the next, non-duplicate nonces even when called concurrently. The nonces returned should be such that they are the next nonces missing for ethereumAccount. For example, if the current nonce is 5, then the next two calls should return 5 and 6. If the implementation inspects the transaction pool, it should make also fill out potential 'gaps' in the transaction pool. For example, if the current nonce is 2, but the transaction pool already contains nonces with values 3 and 5, then the next calls should return 2, 4, 6, 7 etc.

    Definition Classes
    BesuTxPoolNonceManagerNonceManager
  11. def hydrateBeforeNext(): Unit

    Signal that the cached nonce should be refreshed before the next nonce is returned.

    Signal that the cached nonce should be refreshed before the next nonce is returned.

    Definition Classes
    BesuTxPoolNonceManagerNonceManager
  12. val hydrateBeforeNextInternal: AtomicBoolean
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def logger: TracedLogger
    Attributes
    protected
    Definition Classes
    NamedLogging
  15. val loggerFactory: NamedLoggerFactory
    Definition Classes
    BesuTxPoolNonceManagerNamedLogging
  16. implicit def loggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def noTracingLogger: Logger
    Attributes
    protected
    Definition Classes
    NamedLogging
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def productElementNames: Iterator[String]
    Definition Classes
    Product
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

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

Inherited from NonceManager

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from NamedLogging

Inherited from AnyRef

Inherited from Any

Ungrouped