Fixing requeue_pull

https://github.com/clemahieu/raiblocks/issues/524
This commit is contained in:
SergiySW 2018-01-28 04:44:21 +03:00 committed by androm3da
commit ceace09c60

View file

@ -470,7 +470,8 @@ rai::bulk_pull_client::~bulk_pull_client ()
// If received end block is not expected end block
if (expected != pull.end)
{
connection->attempt->requeue_pull (rai::pull_info (pull.account, expected, pull.end));
pull.head = expected;
connection->attempt->requeue_pull (pull);
if (connection->node->config.logging.bulk_pull_logging ())
{
BOOST_LOG (connection->node->log) << boost::str (boost::format ("Bulk pull end block is not expected %1% for account %2%") % pull.end.to_string () % pull.account.to_account ());