Improve --debug_profile_bootstrap performance (#2626)
block sideband is not required for some CLI tests
This commit is contained in:
parent
6c011e9656
commit
d2cbf2a57e
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue