Should now properly do per-kb fee

I'm an idiot.
This commit is contained in:
Thomas Winget 2014-10-30 18:53:56 -04:00 committed by Riccardo Spagni
parent 557e27fd21
commit dc67b12ea9

View file

@ -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;