Function FeeManager.check
Checks the given transaction has the required fees
The transaction fees must be sufficient to pay the data payload fee and also the minimum fee for the size of the transaction. The size of the data payload is also checked to be less than maximum allowed.
Parameters
Name | Description |
---|---|
tx | Transaction |
tx_fee | transaction fee |
Return
null
if the transaction is valid otherwise a string explaining the
reason it is not.