Interface TransactionSelectionResult.Status

Enclosing class:
TransactionSelectionResult

protected static interface TransactionSelectionResult.Status
Represent the status of a transaction selection result. Plugin can extend this to implement its own statuses.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Should the current transaction be removed from the txpool?
    Name of this status
    boolean
    Should the score of this transaction be decremented?
    boolean
    Should the selection process be stopped?
  • Method Details

    • stop

      boolean stop()
      Should the selection process be stopped?
      Returns:
      true if the selection process needs to be stopped
    • discard

      boolean discard()
      Should the current transaction be removed from the txpool?
      Returns:
      yes if the transaction should be removed from the txpool
    • penalize

      boolean penalize()
      Should the score of this transaction be decremented?
      Returns:
      yes if the score of this transaction needs to be decremented
    • name

      String name()
      Name of this status
      Returns:
      the name