diff options
| author | Riccardo Spagni <ric@spagni.net> | 2017-08-15 20:45:47 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2017-08-15 20:45:47 +0200 |
| commit | 1cf4665d2abd9ec86e5cd09cc9262c36b89cc04b (patch) | |
| tree | c90017e020bbd17ebe47fb594f944c2286fe0f0e /src/cryptonote_core/blockchain.cpp | |
| parent | d64b9c1c9e73743b78a2ff84e8fe67b0b9486feb (diff) | |
| parent | 5d4ef719b9763ce9c150b93d61e541f5bbc1bbb9 (diff) | |
| download | monzero-core-1cf4665d2abd9ec86e5cd09cc9262c36b89cc04b.tar.gz monzero-core-1cf4665d2abd9ec86e5cd09cc9262c36b89cc04b.tar.xz monzero-core-1cf4665d2abd9ec86e5cd09cc9262c36b89cc04b.zip | |
Merge pull request #2237
5d4ef719 core: speed up output index unique set calculation (moneromooo-monero)
19d7f568 perf_timer: allow profiling more granular than millisecond (moneromooo-monero)
bda8c598 epee: add nanosecond timer and pause/restart profiling macros (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
| -rw-r--r-- | src/cryptonote_core/blockchain.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 404321e0f..d1f5f0dcd 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -3883,17 +3883,17 @@ bool Blockchain::prepare_handle_incoming_blocks(const std::list<block_complete_e offset_map[in_to_key.amount].push_back(offset); } - - // sort and remove duplicate absolute_offsets in offset_map - for (auto &offsets : offset_map) - { - std::sort(offsets.second.begin(), offsets.second.end()); - auto last = std::unique(offsets.second.begin(), offsets.second.end()); - offsets.second.erase(last, offsets.second.end()); - } } } + // sort and remove duplicate absolute_offsets in offset_map + for (auto &offsets : offset_map) + { + std::sort(offsets.second.begin(), offsets.second.end()); + auto last = std::unique(offsets.second.begin(), offsets.second.end()); + offsets.second.erase(last, offsets.second.end()); + } + // [output] stores all transactions for each tx_out_index::hash found std::vector<std::unordered_map<crypto::hash, cryptonote::transaction>> transactions(amounts.size()); |
