Package nxt.peer
Class FeeRateCalculator
java.lang.Object
nxt.peer.FeeRateCalculator
Filters the currently known
The best rate is not always the cheapest one and depends on the
BundlerRates according to the provided minBalance, minFeeLimit
and whitelist. Calculates the best NQT per FXT rate to be used when creating a child chain transaction. The best rate is not always the cheapest one and depends on the
priority of the transaction-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Method Summary
Modifier and TypeMethodDescriptionstatic FeeRateCalculator.Buildercreate()longgetBestRate(Chain childChain) longlong
-
Method Details
-
create
-
getMinBalance
public long getMinBalance() -
getMinFeeLimit
public long getMinFeeLimit() -
getWhitelist
-
getPriority
-
getBestRates
- Returns:
- The best bundler rate for each child chain
-
getBestRate
- Parameters:
childChain- The child chain we are interested in- Returns:
- The best NQT per FXT rate for a child chain
-