From ceace09c603e3e36f50a41696ee1e050a3f2cce6 Mon Sep 17 00:00:00 2001 From: SergiySW Date: Sun, 28 Jan 2018 04:44:21 +0300 Subject: [PATCH] Fixing requeue_pull https://github.com/clemahieu/raiblocks/issues/524 --- rai/node/bootstrap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rai/node/bootstrap.cpp b/rai/node/bootstrap.cpp index c1dfbd1f..4efd3b03 100644 --- a/rai/node/bootstrap.cpp +++ b/rai/node/bootstrap.cpp @@ -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 ());