diff options
author | luigi1111 <luigi1111w@gmail.com> | 2024-05-20 23:18:07 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2024-05-20 23:18:07 -0500 |
commit | 6462d3760d0c5db5852aec8331f9115a6edde3e0 (patch) | |
tree | 7445cc1e86fcf782778f4ac993dcfe598dc16c62 /src/rpc/daemon_handler.cpp | |
parent | Merge pull request #9211 (diff) | |
parent | Blockchain: remove old fee calc logic (diff) | |
download | monero-6462d3760d0c5db5852aec8331f9115a6edde3e0.tar.xz |
Merge pull request #9232
7194506 Blockchain: remove old fee calc logic (jeffro256)
Diffstat (limited to 'src/rpc/daemon_handler.cpp')
-rw-r--r-- | src/rpc/daemon_handler.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/rpc/daemon_handler.cpp b/src/rpc/daemon_handler.cpp index 04597b168..4712de134 100644 --- a/src/rpc/daemon_handler.cpp +++ b/src/rpc/daemon_handler.cpp @@ -841,14 +841,11 @@ namespace rpc void DaemonHandler::handle(const GetFeeEstimate::Request& req, GetFeeEstimate::Response& res) { res.hard_fork_version = m_core.get_blockchain_storage().get_current_hard_fork_version(); - res.estimated_base_fee = m_core.get_blockchain_storage().get_dynamic_base_fee_estimate(req.num_grace_blocks); - if (res.hard_fork_version < HF_VERSION_PER_BYTE_FEE) - { - res.size_scale = 1024; // per KiB fee - res.fee_mask = 1; - } - else + std::vector<uint64_t> fees; + m_core.get_blockchain_storage().get_dynamic_base_fee_estimate_2021_scaling(req.num_grace_blocks, fees); + res.estimated_base_fee = fees[0]; + { res.size_scale = 1; // per byte fee res.fee_mask = Blockchain::get_fee_quantization_mask(); |