Skip to content

Commit

Permalink
Merge pull request #4827 from pwojcikdev/bootstrap-fork-open-fixes
Browse files Browse the repository at this point in the history
Fix `bootstrap_fork_open` test
  • Loading branch information
pwojcikdev authored Jan 18, 2025
2 parents 7919fd6 + 23b245e commit 2bd47b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nano/core_test/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,8 @@ TEST (node, bootstrap_fork_open)
nano::test::system system;
nano::node_config node_config (system.get_available_port ());
node_config.bootstrap.account_sets.cooldown = 100ms; // Reduce cooldown to speed up fork resolution
node_config.bootstrap.frontier_scan.head_parallelistm = 3; // Make sure we can process the full account number range
node_config.bootstrap.frontier_rate_limit = 0; // Disable rate limiting to speed up the scan
// Disable automatic election activation
node_config.backlog_scan.enable = false;
node_config.priority_scheduler.enable = false;
Expand Down
6 changes: 6 additions & 0 deletions nano/node/bootstrap/bootstrap_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,9 @@ bool nano::bootstrap_service::request_info (nano::block_hash hash, std::shared_p
tag.source = source;
tag.start = hash;
tag.hash = hash;

logger.debug (nano::log::type::bootstrap, "Requesting account info for: {}", hash.to_string ()); // TODO: Lazy eval

return send (channel, tag);
}

Expand All @@ -602,6 +605,9 @@ bool nano::bootstrap_service::request_frontiers (nano::account start, std::share
tag.type = query_type::frontiers;
tag.source = source;
tag.start = start;

logger.debug (nano::log::type::bootstrap, "Requesting frontiers starting from: {}", start.to_account ()); // TODO: Lazy eval

return send (channel, tag);
}

Expand Down

0 comments on commit 2bd47b6

Please sign in to comment.