mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 06:43:28 +01:00
per kb fees not passing correct fee to transfer()
This commit is contained in:
parent
dc67b12ea9
commit
d2287d3108
@ -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.
|
// loop until fee is met without increasing tx size to next KB boundary.
|
||||||
uint64_t needed_fee = 0;
|
uint64_t needed_fee = 0;
|
||||||
uint64_t current_fee = 0;
|
|
||||||
do
|
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);
|
auto txBlob = t_serializable_object_to_blob(ptx.tx);
|
||||||
uint64_t txSize = txBlob.size();
|
uint64_t txSize = txBlob.size();
|
||||||
uint64_t numKB = txSize / 1024;
|
uint64_t numKB = txSize / 1024;
|
||||||
|
Loading…
Reference in New Issue
Block a user