From e0124547689484f4c91f93fc556c3984fcd2795b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Wo=CC=81jcik?= <3044353+pwojcikdev@users.noreply.github.com> Date: Mon, 6 Nov 2023 18:53:36 +0100 Subject: [PATCH] Periodically refresh read transaction in `bootstrap_server` --- nano/node/bootstrap/bootstrap_server.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nano/node/bootstrap/bootstrap_server.cpp b/nano/node/bootstrap/bootstrap_server.cpp index a11c5657db..6f24c975b5 100644 --- a/nano/node/bootstrap/bootstrap_server.cpp +++ b/nano/node/bootstrap/bootstrap_server.cpp @@ -150,6 +150,8 @@ void nano::bootstrap_server::process_batch (std::deque & batch) for (auto & [request, channel] : batch) { + transaction.refresh_if_needed (); + if (!channel->max (nano::transport::traffic_type::bootstrap)) { auto response = process (transaction, request);