mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
wallet2: fix backlog being off by 1
We don't want to count "partly filled" blocks in this case
This commit is contained in:
parent
a2041c9874
commit
f139a6cad0
@ -6018,8 +6018,8 @@ std::vector<std::pair<uint64_t, uint64_t>> wallet2::estimate_backlog(uint64_t mi
|
|||||||
priority_size_max += i.blob_size;
|
priority_size_max += i.blob_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t nblocks_min = (priority_size_min + full_reward_zone - 1) / full_reward_zone;
|
uint64_t nblocks_min = priority_size_min / full_reward_zone;
|
||||||
uint64_t nblocks_max = (priority_size_max + full_reward_zone - 1) / full_reward_zone;
|
uint64_t nblocks_max = priority_size_max / full_reward_zone;
|
||||||
MDEBUG("estimate_backlog: priority_size " << priority_size_min << " - " << priority_size_max << " for " << fee
|
MDEBUG("estimate_backlog: priority_size " << priority_size_min << " - " << priority_size_max << " for " << fee
|
||||||
<< " (" << our_fee_byte_min << " - " << our_fee_byte_max << " piconero byte fee), "
|
<< " (" << our_fee_byte_min << " - " << our_fee_byte_max << " piconero byte fee), "
|
||||||
<< nblocks_min << " - " << nblocks_max << " blocks at block size " << full_reward_zone);
|
<< nblocks_min << " - " << nblocks_max << " blocks at block size " << full_reward_zone);
|
||||||
|
Loading…
Reference in New Issue
Block a user