From e4cabe816a6a2a515d77e459ffaeef1ac9f25aa9 Mon Sep 17 00:00:00 2001 From: clemahieu Date: Sun, 6 Aug 2017 22:57:52 -0500 Subject: [PATCH] frontier_req_client::next() opens another transaction which can hang when resizing. --- rai/node/bootstrap.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/rai/node/bootstrap.cpp b/rai/node/bootstrap.cpp index 00b2b258..88746a46 100755 --- a/rai/node/bootstrap.cpp +++ b/rai/node/bootstrap.cpp @@ -346,11 +346,13 @@ void rai::frontier_req_client::received_frontier (boost::system::error_code cons { while (!current.is_zero () && current < account) { - // We know about an account they don't. - rai::transaction transaction (connection->node->store.environment, nullptr, true); - if (connection->node->wallets.exists (transaction, current)) { - unsynced (transaction, info.head, 0); + // We know about an account they don't. + rai::transaction transaction (connection->node->store.environment, nullptr, true); + if (connection->node->wallets.exists (transaction, current)) + { + unsynced (transaction, info.head, 0); + } } next (); }