Compute only the expected base fee for a transaction.
std::uint64_t calculateBaseFee( Application& app, ReadView const& view, STTx const& tx, beast::Journal j);
Base fees are transaction specific, so any calculation needing them must get the base fee for each transaction.
No validation is done or implied by this function.
Caller is responsible for handling any exceptions. Since none should be thrown, that will usually mean terminating.
Name |
Description |
---|---|
|
The current running |
|
The current open ledger. |
|
The transaction to be checked. |
|
A journal. |
The base fee.
#include <ripple/app/tx/applySteps.h>