mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-25 21:45:52 +00:00
Begin to sanitize the fee structure. Implement load scaling.
This commit is contained in:
@@ -5,17 +5,14 @@
|
||||
SETUP_LOG();
|
||||
|
||||
|
||||
void RegularKeySetTransactor::calculateFee()
|
||||
uint64_t RegularKeySetTransactor::calculateBaseFee()
|
||||
{
|
||||
Transactor::calculateFee();
|
||||
|
||||
if ( !(mTxnAccount->getFlags() & lsfPasswordSpent) &&
|
||||
(mSigningPubKey.getAccountID() == mTxnAccountID))
|
||||
{ // flag is armed and they signed with the right account
|
||||
|
||||
mSourceBalance = mTxnAccount->getFieldAmount(sfBalance);
|
||||
if(mSourceBalance < mFeeDue) mFeeDue = 0;
|
||||
return 0;
|
||||
}
|
||||
return Transactor::calculateBaseFee();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user