aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2016-09-01 13:53:53 -0500
committerluigi1111 <luigi1111w@gmail.com>2016-09-01 13:53:53 -0500
commit34bb78956f04d5fe8af956fd85d74b89da258e8b (patch)
treee78b6a0f3970c992b923bf83d15d7ca028e043cb /src/wallet/wallet2.cpp
parentFix some rct tx size calculations (diff)
downloadmonero-34bb78956f04d5fe8af956fd85d74b89da258e8b.tar.xz
Re-add s to rangesigs
Whoops.
Diffstat (limited to 'src/wallet/wallet2.cpp')
-rw-r--r--src/wallet/wallet2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index be351d5ca..a195abde6 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -3109,9 +3109,9 @@ static size_t estimate_rct_tx_size(int n_inputs, int mixin, int n_outputs)
size += 1;
// rangeSigs
- size += (2*64*32+64*32) * n_outputs;
+ size += (2*64*32+32+64*32) * n_outputs;
- // MGs - only the last slot of II is saved, the rest can be reconstructed
+ // MGs
size += n_inputs * (32 * (mixin+1) + 32);
// mixRing - not serialized, can be reconstructed