aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-10-22 19:46:07 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-10-22 19:46:07 +0100
commit44f14638670f24e642d6a971bfd44dff59466b3c (patch)
tree3f08a038d92885d6e0a7c8d015501c8396305ea3
parentMerge pull request #2601 (diff)
downloadmonero-44f14638670f24e642d6a971bfd44dff59466b3c.tar.xz
wallet2: fix tx size estimator for large number of inputs
-rw-r--r--src/wallet/wallet2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index cc0e9e7e2..646a8f6d4 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -4751,7 +4751,7 @@ static size_t estimate_rct_tx_size(int n_inputs, int mixin, int n_outputs)
size += (2*64*32+32+64*32) * n_outputs;
// MGs
- size += n_inputs * (32 * (mixin+1) + 32);
+ size += n_inputs * (64 * (mixin+1) + 32);
// mixRing - not serialized, can be reconstructed
/* size += 2 * 32 * (mixin+1) * n_inputs; */