Skip to content

Commit

Permalink
Make announcement_long delay 2 rounds (#2056)
Browse files Browse the repository at this point in the history
  • Loading branch information
SergiySW authored and Russel Waters committed Jun 11, 2019
1 parent a03f334 commit 9852394
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nano/node/active_transactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ void nano::active_transactions::request_confirm (std::unique_lock<std::mutex> &
}
}
}
if (election_l->announcements % 4 == 1)
if (election_l->announcements % announcement_long == 1)
{
auto rep_channels (std::make_shared<std::vector<std::shared_ptr<nano::transport::channel>>> ());
auto reps (node.rep_crawler.representatives (std::numeric_limits<size_t>::max ()));
Expand Down
2 changes: 1 addition & 1 deletion nano/node/active_transactions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class active_transactions final
// Minimum number of block announcements
static unsigned constexpr announcement_min = 2;
// Threshold to start logging blocks haven't yet been confirmed
static unsigned constexpr announcement_long = 20;
static unsigned constexpr announcement_long = 2;
size_t long_unconfirmed_size = 0;
static size_t constexpr max_broadcast_queue = 1000;
boost::circular_buffer<double> multipliers_cb;
Expand Down

0 comments on commit 9852394

Please sign in to comment.