Skip to content

Commit

Permalink
Add more status messages when rescanning SNs (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
jagerman authored and Doy-lee committed May 12, 2019
1 parent 580f259 commit 27bc2aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cryptonote_core/service_node_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,11 @@ namespace service_nodes
LOG_PRINT_L0("This may take some time...");

std::vector<std::pair<cryptonote::blobdata, cryptonote::block>> blocks;
while (m_transient_state.height < current_height)
for (uint64_t i = 0; m_transient_state.height < current_height; i++)
{
if (i > 0 && i % 10 == 0)
LOG_PRINT_L0("... scanning height " << m_transient_state.height);

blocks.clear();
if (!m_blockchain.get_blocks(m_transient_state.height, 1000, blocks))
{
Expand All @@ -137,6 +140,7 @@ namespace service_nodes
block_added_generic(block, txs);
}
}
LOG_PRINT_L0("Done recalculating service nodes list");
}

std::vector<crypto::public_key> service_node_list::get_service_nodes_pubkeys() const
Expand Down

0 comments on commit 27bc2aa

Please sign in to comment.