aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-10-15 18:33:51 +0200
committerRiccardo Spagni <ric@spagni.net>2017-10-15 18:33:51 +0200
commit27ed7419bb6a74a9e15bc35a37000c60c20c6254 (patch)
tree26f77dff5774acb128b2f40c6eb06a9173a4faf2 /src/wallet/wallet2.cpp
parentMerge pull request #2569 (diff)
parentwallet2: fix backlog being off by 1 (diff)
downloadmonero-27ed7419bb6a74a9e15bc35a37000c60c20c6254.tar.xz
Merge pull request #2570
f139a6ca wallet2: fix backlog being off by 1 (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet2.cpp')
-rw-r--r--src/wallet/wallet2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index fdb3bf976..c6ba14dea 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -7161,8 +7161,8 @@ std::vector<std::pair<uint64_t, uint64_t>> wallet2::estimate_backlog(uint64_t mi
priority_size_max += i.blob_size;
}
- uint64_t nblocks_min = (priority_size_min + full_reward_zone - 1) / full_reward_zone;
- uint64_t nblocks_max = (priority_size_max + 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;
MDEBUG("estimate_backlog: priority_size " << priority_size_min << " - " << priority_size_max << " for " << fee
<< " (" << our_fee_byte_min << " - " << our_fee_byte_max << " piconero byte fee), "
<< nblocks_min << " - " << nblocks_max << " blocks at block size " << full_reward_zone);