Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/governance/governance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ namespace {
constexpr std::chrono::seconds GOVERNANCE_DELETION_DELAY{10min};
constexpr std::chrono::seconds GOVERNANCE_ORPHAN_EXPIRATION_TIME{10min};
constexpr std::chrono::seconds MAX_TIME_FUTURE_DEVIATION{1h};
using governance::RELIABLE_PROPAGATION_TIME;
// Margin below MAX_TIME_FUTURE_DEVIATION so lagging-clock peers don't reject near-limit objects.
constexpr std::chrono::seconds RELIABLE_PROPAGATION_TIME{60};
Comment thread
thepastaclaw marked this conversation as resolved.

bool IsSyncableObject(const std::shared_ptr<CGovernanceObject>& govobj)
{
Expand Down
3 changes: 0 additions & 3 deletions src/governance/governance.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <primitives/transaction.h>
#include <sync.h>

#include <chrono>
#include <limits>
#include <map>
#include <memory>
Expand Down Expand Up @@ -39,8 +38,6 @@ class UniValue;

namespace governance {
class SuperblockManager;
// How long a requested governance inv hash remains in the request cache.
inline constexpr std::chrono::seconds RELIABLE_PROPAGATION_TIME{60};
} // namespace governance

using vote_time_pair_t = std::pair<CGovernanceVote, int64_t>;
Expand Down
Loading
Loading