Package nxt.blockchain
Class Bundler.Rule
java.lang.Object
nxt.blockchain.Bundler.Rule
- Enclosing class:
- Bundler
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 Summary
FieldsModifier and TypeFieldDescriptionprotected final Bundler.FeeCalculatorprotected final List<Bundler.Filter>protected final longprotected final BigIntegerprotected final longprotected final BigInteger -
Method Summary
Modifier and TypeMethodDescriptionprotected longcalculateFeeFQT(ChildTransactionImpl childTransaction) final longfinal longprotected booleanisAtomicChainAccepted(Bundler bundler, AtomicChain<ChildTransactionImpl> chain) longoverpay(long feeFQT)
-
Field Details
-
feeCalculator
-
filters
-
minRateNQTPerFXT
protected final long minRateNQTPerFXT -
minRateNQTPerFXTBigInteger
-
overpayFQTPerFXT
protected final long overpayFQTPerFXT -
overpayFQTPerFXTBigInteger
-
-
Method Details
-
calculateFeeFQT
-
getMinRateNQTPerFXT
public final long getMinRateNQTPerFXT() -
getOverpayFQTPerFXT
public final long getOverpayFQTPerFXT() -
getFilters
-
getFeeCalculator
-
isAtomicChainAccepted
-
overpay
public long overpay(long feeFQT)
-