Skip to content

Commit

Permalink
Periodically refresh read transaction in bootstrap_server
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Nov 6, 2023
1 parent 99b7bd5 commit e012454
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nano/node/bootstrap/bootstrap_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ void nano::bootstrap_server::process_batch (std::deque<request_t> & batch)

for (auto & [request, channel] : batch)
{
transaction.refresh_if_needed ();

if (!channel->max (nano::transport::traffic_type::bootstrap))
{
auto response = process (transaction, request);
Expand Down

0 comments on commit e012454

Please sign in to comment.