aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authorThomas Winget <tewinget@gmail.com>2014-10-30 18:53:56 -0400
committerRiccardo Spagni <ric@spagni.net>2014-11-06 22:09:14 -0700
commitdc67b12ea9b8056efdf72c57bf4377c758f26a64 (patch)
tree5baef586d66debc4c2db12724e70a2ab282ea081 /src/wallet/wallet2.cpp
parentper kb fees (diff)
downloadmonero-dc67b12ea9b8056efdf72c57bf4377c758f26a64.tar.xz
Should now properly do per-kb fee
I'm an idiot.
Diffstat (limited to 'src/wallet/wallet2.cpp')
-rw-r--r--src/wallet/wallet2.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index 31345879b..173321d42 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -957,9 +957,10 @@ 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, fee, extra, tx, ptx);
+ transfer(dst_vector, fake_outs_count, unlock_time, current_fee, extra, tx, ptx);
auto txBlob = t_serializable_object_to_blob(ptx.tx);
uint64_t txSize = txBlob.size();
uint64_t numKB = txSize / 1024;