frontier_req_client::next() opens another transaction which can hang when resizing.
This commit is contained in:
parent
ea57be5832
commit
e4cabe816a
1 changed files with 6 additions and 4 deletions
|
@ -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 ();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue