aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-10-31 20:33:19 +0200
committerRiccardo Spagni <ric@spagni.net>2017-10-31 20:33:19 +0200
commit3fe07603e424c4f95ca52a1bb33a2616b6a04a4d (patch)
tree23c0c77ff713bdb7cb72508320ee6b4447b46574 /src/wallet
parentMerge pull request #2702 (diff)
parentwallet2: fix tx size estimator for large number of inputs (diff)
downloadmonero-3fe07603e424c4f95ca52a1bb33a2616b6a04a4d.tar.xz
Merge pull request #2705
44f14638 wallet2: fix tx size estimator for large number of inputs (moneromooo-monero)
Diffstat (limited to 'src/wallet')
-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; */