aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-10-09 14:34:38 +0200
committerRiccardo Spagni <ric@spagni.net>2016-10-09 14:34:38 +0200
commitfe43461c2bb93c27d267dda0d7511ec601222eca (patch)
tree3284b5cfb361e3cb37abbeb03faf7f6a64e93bb7 /src/cryptonote_core
parent8cd01bc37829b8ac22ea2f47e0166355951f301c (diff)
parent3126ba74255a647eb31c961d029c37538feb3cc7 (diff)
downloadmonzero-core-fe43461c2bb93c27d267dda0d7511ec601222eca.tar.gz
monzero-core-fe43461c2bb93c27d267dda0d7511ec601222eca.tar.xz
monzero-core-fe43461c2bb93c27d267dda0d7511ec601222eca.zip
Merge pull request #1194
3126ba7 ringct: use const refs as parameters where appropriate (moneromooo-monero) d8eae67 tests: add performance test for ge_frombytes_vartime (moneromooo-monero) 3cb2436 core: remove some unused code (moneromooo-monero) 1eaa3e8 tests: add performance tests for rct signatures (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_core')
-rw-r--r--src/cryptonote_core/cryptonote_format_utils.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/cryptonote_core/cryptonote_format_utils.cpp b/src/cryptonote_core/cryptonote_format_utils.cpp
index 64f8eb924..870e8f0d8 100644
--- a/src/cryptonote_core/cryptonote_format_utils.cpp
+++ b/src/cryptonote_core/cryptonote_format_utils.cpp
@@ -658,10 +658,7 @@ namespace cryptonote
}
else
{
- bool all_rct_inputs = true;
size_t n_total_outs = sources[0].outputs.size(); // only for non-simple rct
- BOOST_FOREACH(const tx_source_entry& src_entr, sources)
- all_rct_inputs &= !(src_entr.mask == rct::identity());
// the non-simple version is slightly smaller, but assumes all real inputs
// are on the same index, so can only be used if there just one ring.