aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Winget <tewinget@gmail.com>2014-11-03 14:35:48 -0500
committerRiccardo Spagni <ric@spagni.net>2014-11-06 22:09:23 -0700
commitd2287d31083bc1f9c5ff52f77c23846ff5241819 (patch)
tree43c531fd7e22f46ac9759db77144d09e0fda6937 /src
parentShould now properly do per-kb fee (diff)
downloadmonero-d2287d31083bc1f9c5ff52f77c23846ff5241819.tar.xz
per kb fees not passing correct fee to transfer()
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet2.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index 173321d42..5b247ff47 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -957,10 +957,9 @@ std::vector<wallet2::pending_tx> wallet2::create_transactions(std::vector<crypto
// loop until fee is met without increasing tx size to next KB boundary.
uint64_t needed_fee = 0;
- uint64_t current_fee = 0;
do
{
- transfer(dst_vector, fake_outs_count, unlock_time, current_fee, extra, tx, ptx);
+ transfer(dst_vector, fake_outs_count, unlock_time, needed_fee, extra, tx, ptx);
auto txBlob = t_serializable_object_to_blob(ptx.tx);
uint64_t txSize = txBlob.size();
uint64_t numKB = txSize / 1024;