From 0605406714b626575d8ea3945504fa5e123399fd Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Thu, 2 May 2019 22:23:00 +0000 Subject: daemon: sort alt chains by height --- src/cryptonote_core/blockchain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cryptonote_core/blockchain.cpp') diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 39c9f8695..d79a8fab6 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -4798,9 +4798,9 @@ std::map> Blockchain:: get_ou return m_db->get_output_histogram(amounts, unlocked, recent_cutoff, min_count); } -std::list>> Blockchain::get_alternative_chains() const +std::vector>> Blockchain::get_alternative_chains() const { - std::list>> chains; + std::vector>> chains; for (const auto &i: m_alternative_chains) { -- cgit v1.2.3