Skip to content

Commit

Permalink
Increase activation delay + queue size
Browse files Browse the repository at this point in the history
It was found during testing that a bit longer delay works better
  • Loading branch information
pwojcikdev committed Feb 22, 2023
1 parent 0fef9e1 commit 2b1e711
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nano/lib/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ class network_constants
std::chrono::milliseconds telemetry_cache_cutoff{ 1000 * 130 }; // 2 * `telemetry_broadcast_interval` + some margin

/** How much to delay activation of optimistic elections to avoid interfering with election scheduler */
std::chrono::seconds optimistic_activation_delay{ 5 };
std::chrono::seconds optimistic_activation_delay{ 30 };

/** Returns the network this object contains values for */
nano::networks network () const
Expand Down
2 changes: 1 addition & 1 deletion nano/node/optimistic_scheduler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class optimistic_scheduler_config final
std::size_t gap_threshold{ 32 };

/** Maximum number of candidates stored in memory */
std::size_t max_size{ 1024 * 16 };
std::size_t max_size{ 1024 * 64 };
};

class optimistic_scheduler final
Expand Down

0 comments on commit 2b1e711

Please sign in to comment.