Begin to sanitize the fee structure. Implement load scaling.

This commit is contained in:
JoelKatz
2012-12-26 14:05:58 -08:00
parent fa109a1aee
commit dcd2fc9fab
4 changed files with 15 additions and 9 deletions

View File

@@ -42,7 +42,12 @@ Transactor::Transactor(const SerializedTransaction& txn,TransactionEngineParams
void Transactor::calculateFee()
{
mFeeDue = theConfig.FEE_DEFAULT;
mFeeDue = STAmount(mEngine->getLedger()->scaleFeeLoad(calculateBaseFee()));
}
uint64_t Transactor::calculateBaseFee()
{
return theConfig.FEE_DEFAULT;
}
TER Transactor::payFee()