From d2cbf2a57e50ec1a5960e743e7d5280d6d51bd05 Mon Sep 17 00:00:00 2001 From: Sergey Kroshnin Date: Wed, 4 Mar 2020 20:55:02 +0300 Subject: [PATCH] Improve --debug_profile_bootstrap performance (#2626) block sideband is not required for some CLI tests --- nano/nano_node/entry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nano/nano_node/entry.cpp b/nano/nano_node/entry.cpp index 643cd52b..e30c01cd 100644 --- a/nano/nano_node/entry.cpp +++ b/nano/nano_node/entry.cpp @@ -1167,7 +1167,7 @@ int main (int argc, char * const * argv) nano::pending_key const & key (i->first); nano::pending_info const & info (i->second); // Check block existance - auto block (node.node->store.block_get (transaction, key.hash)); + auto block (node.node->store.block_get_no_sideband (transaction, key.hash)); if (block == nullptr) { std::cerr << boost::str (boost::format ("Pending block does not exist %1%\n") % key.hash.to_string ()); @@ -1234,7 +1234,7 @@ int main (int argc, char * const * argv) while (!hash.is_zero ()) { // Retrieving block data - auto block (node.node->store.block_get (transaction, hash)); + auto block (node.node->store.block_get_no_sideband (transaction, hash)); if (block != nullptr) { ++count;