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. implicit def errorLoggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  9. 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
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def getNonce: BigInteger

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

    Returns the next nonce that should be used for an Ethereum transaction by ethereumAccount. The implementation is thread-safe, i.e., it returns the correct next nonce even when called concurrently. The nonces returned are such that they are the next nonces missing for ethereumAccount. For example, if the current nonce is 5, then the next two calls return 5 and 6. If the implementation inspects the transaction pool, it also fills 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 return 2, 4, 6, 7 etc.

    Definition Classes
    BesuTxPoolNonceManagerNonceManager
  12. 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
  13. val hydrateBeforeNextInternal: AtomicBoolean
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def logger: TracedLogger
    Attributes
    protected
    Definition Classes
    NamedLogging
  16. val loggerFactory: NamedLoggerFactory
    Definition Classes
    BesuTxPoolNonceManagerNamedLogging
  17. implicit def namedLoggingContext(implicit traceContext: TraceContext): NamedLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def noTracingLogger: Logger
    Attributes
    protected
    Definition Classes
    NamedLogging
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. def productElementNames: Iterator[String]
    Definition Classes
    Product
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  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()
  26. 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