Improve --debug_profile_bootstrap performance (#2626)

block sideband is not required for some CLI tests
This commit is contained in:
Sergey Kroshnin 2020-03-04 20:55:02 +03:00 committed by GitHub
commit d2cbf2a57e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;