From bbb787745db6c3c496cc06b14c42c5453751f134 Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Thu, 12 Sep 2024 12:54:22 -0500 Subject: [PATCH] GH-592 Now that we limit how far ahead we sync, no need to pause during snapshot. It naturally pauses. --- plugins/net_plugin/net_plugin.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/plugins/net_plugin/net_plugin.cpp b/plugins/net_plugin/net_plugin.cpp index 62e111ecfc..416d160eba 100644 --- a/plugins/net_plugin/net_plugin.cpp +++ b/plugins/net_plugin/net_plugin.cpp @@ -553,14 +553,6 @@ namespace eosio { void start_expire_timer(); void start_monitors(); - // we currently pause on snapshot generation - void wait_if_paused() const { - controller& cc = chain_plug->chain(); - while (cc.is_writing_snapshot()) { - std::this_thread::sleep_for(std::chrono::milliseconds(10)); - } - } - void expire(); /** \name Peer Timestamps * Time message handling @@ -2938,8 +2930,6 @@ namespace eosio { return; } - my_impl->wait_if_paused(); - boost::asio::async_read( *socket, pending_message_buffer.get_buffer_sequence_for_boost_async_read(), completion_handler, boost::asio::bind_executor( strand,