Blockchain: remove old fee calc logic

This commit is contained in:
jeffro256 2024-03-10 12:11:39 -05:00
parent 7b7958bbd9
commit 7194506792
No known key found for this signature in database
GPG key ID: 6F79797A6E392442
7 changed files with 32 additions and 313 deletions

View file

@ -3019,16 +3019,10 @@ namespace cryptonote
CHECK_PAYMENT(req, res, COST_PER_FEE_ESTIMATE);
const uint8_t version = m_core.get_blockchain_storage().get_current_hard_fork_version();
if (version >= HF_VERSION_2021_SCALING)
{
m_core.get_blockchain_storage().get_dynamic_base_fee_estimate_2021_scaling(req.grace_blocks, res.fees);
res.fee = res.fees[0];
}
else
{
res.fee = m_core.get_blockchain_storage().get_dynamic_base_fee_estimate(req.grace_blocks);
}
res.quantization_mask = Blockchain::get_fee_quantization_mask();
res.status = CORE_RPC_STATUS_OK;
return true;