mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #4202
8439306
wallet2: do not divide by 0 on invalid daemon response (moneromooo-monero)
This commit is contained in:
commit
6e8e4fb3b7
1 changed files with 1 additions and 0 deletions
|
@ -11211,6 +11211,7 @@ std::vector<std::pair<uint64_t, uint64_t>> wallet2::estimate_backlog(const std::
|
||||||
const auto result = m_node_rpc_proxy.get_block_size_limit(block_size_limit);
|
const auto result = m_node_rpc_proxy.get_block_size_limit(block_size_limit);
|
||||||
throw_on_rpc_response_error(result, "get_info");
|
throw_on_rpc_response_error(result, "get_info");
|
||||||
uint64_t full_reward_zone = block_size_limit / 2;
|
uint64_t full_reward_zone = block_size_limit / 2;
|
||||||
|
THROW_WALLET_EXCEPTION_IF(full_reward_zone == 0, error::wallet_internal_error, "Invalid block size limit from daemon");
|
||||||
|
|
||||||
std::vector<std::pair<uint64_t, uint64_t>> blocks;
|
std::vector<std::pair<uint64_t, uint64_t>> blocks;
|
||||||
for (const auto &fee_level: fee_levels)
|
for (const auto &fee_level: fee_levels)
|
||||||
|
|
Loading…
Reference in a new issue