mirror of
https://github.com/monero-project/monero.git
synced 2026-01-02 07:50:16 -08:00
daemon: sort alt chains by height
This commit is contained in:
@@ -1991,7 +1991,7 @@ namespace cryptonote
|
||||
PERF_TIMER(on_get_alternate_chains);
|
||||
try
|
||||
{
|
||||
std::list<std::pair<Blockchain::block_extended_info, std::vector<crypto::hash>>> chains = m_core.get_blockchain_storage().get_alternative_chains();
|
||||
std::vector<std::pair<Blockchain::block_extended_info, std::vector<crypto::hash>>> chains = m_core.get_blockchain_storage().get_alternative_chains();
|
||||
for (const auto &i: chains)
|
||||
{
|
||||
difficulty_type wdiff = i.first.cumulative_difficulty;
|
||||
|
||||
Reference in New Issue
Block a user