Timing cleanups.

This commit is contained in:
JoelKatz
2012-08-13 17:35:20 -07:00
parent e3b6ec5080
commit 524e89f4e1
2 changed files with 11 additions and 9 deletions

View File

@@ -4,8 +4,13 @@
// The number of seconds a ledger may remain idle before closing
# define LEDGER_IDLE_INTERVAL 15
// The number of seconds a validation remains current
# define LEDGER_MAX_INTERVAL (LEDGER_IDLE_INTERVAL * 4)
// The number of seconds a validation remains current after its ledger's close time
// This is a safety to protect against very old validations
# define LEDGER_MAX_INTERVAL (LEDGER_IDLE_INTERVAL * 32)
// The number of seconds before a close time that we consider a validation acceptable
// This protects against extreme clock errors
# define LEDGER_EARLY_INTERVAL 240
// The number of milliseconds we wait minimum to ensure participation
# define LEDGER_MIN_CONSENSUS 2000