Merge pull request #2705

44f14638 wallet2: fix tx size estimator for large number of inputs (moneromooo-monero)
release-v0.4.0.1
Riccardo Spagni 7 years ago
commit 3fe07603e4
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

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

Loading…
Cancel
Save