Module agora.consensus.Fee
Contains the function to calculate the fees and stores the results in a db.
Fees are the sum of output values minus the sum of input values.
We store the calculated fees after each block is externalized as we have all
the inputs available in the UTXO set at that time.
Functions
Name | Description |
calculateDataFee(data_size, factor)
|
Calculates the fee of transaction data to store
|
getFee(tx, peekUTXO, getPenaltyDeposit)
|
Returns the transaction fees (not including data fees) of a transaction
|
Classes
Name | Description |
FeeManager
|
A class that provides the ability to verify the payload field stored
in a Transaction .
|