Class Bundler.Rule

java.lang.Object
nxt.blockchain.Bundler.Rule
Enclosing class:
Bundler

public static class Bundler.Rule extends Object
Bundling rule - transactions that match the filter and minimum rate of the rule are bundled. The fee paid by the bundler for the transaction is calculated according to the feeCalculator of the rule. More than one rule can be specified per bundler, the transaction is processed according to the first rule which accepts the transaction.
  • Field Details

    • feeCalculator

      protected final Bundler.FeeCalculator feeCalculator
    • filters

      protected final List<Bundler.Filter> filters
    • minRateNQTPerFXT

      protected final long minRateNQTPerFXT
    • minRateNQTPerFXTBigInteger

      protected final BigInteger minRateNQTPerFXTBigInteger
    • overpayFQTPerFXT

      protected final long overpayFQTPerFXT
    • overpayFQTPerFXTBigInteger

      protected final BigInteger overpayFQTPerFXTBigInteger
  • Method Details

    • calculateFeeFQT

      protected long calculateFeeFQT(ChildTransactionImpl childTransaction)
    • getMinRateNQTPerFXT

      public final long getMinRateNQTPerFXT()
    • getOverpayFQTPerFXT

      public final long getOverpayFQTPerFXT()
    • getFilters

      public List<Bundler.Filter> getFilters()
    • getFeeCalculator

      public Bundler.FeeCalculator getFeeCalculator()
    • isAtomicChainAccepted

      protected boolean isAtomicChainAccepted(Bundler bundler, AtomicChain<ChildTransactionImpl> chain)
    • overpay

      public long overpay(long feeFQT)