Skip to content

Commit

Permalink
GH-1039 Add a better comment
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Nov 26, 2024
1 parent 6bc4406 commit ece786d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4510,7 +4510,13 @@ namespace eosio {
resolve_and_connect(peer, p2p_address);
}
if (!peers.empty()) {
// in case there are blocks in the fork database ready to process
// It is possible that the node was shutdown with blocks to process in the fork database. For example, if
// it was syncing and had processed blocks into the fork database but not yet applied them.
// If the node was shutdown via terminate-at-block, the current expectation is that the node can be restarted
// to examine the state at which it was shutdown. For now, we will only process these blocks if there are
// peers configured. This is a bit of a hack for Spring 1.0.0 until we can add a proper
// pause-at-block (issue #570) which could be used to explicitly request a node to not process beyond
// a specified block.
my_impl->process_blocks();
}
}
Expand Down

0 comments on commit ece786d

Please sign in to comment.