Files
rippled/src/LedgerTiming.h
2012-06-03 19:43:35 -07:00

46 lines
928 B
C

#ifndef __LEDGERTIMING__
#define __LEDGERTIMING__
#define LEDGER_CLOSE_FAST
// #define LEDGER_CLOSE_SLOW
#ifdef LEDGER_CLOSE_FAST
// Time between one ledger close and the next ledger close
# define LEDGER_INTERVAL 45
// Time before we take a position
# define LEDGER_WOBBLE_TIME 2
// Time we expect avalanche to finish
# define LEDGER_CONVERGE 20
// Time we forcibly abort avalanche
# define LEDGER_FORCE_CONVERGE 25
#endif
#ifdef LEDGER_CLOSE_SLOW
# define LEDGER_INTERVAL 1800
# define LEDGER_CONVERGE 180
# define LEDGER_FORCE_CONVERGE 240
// Time a transaction must be unconflicted before we consider it protected
# define LEDGER_PROTECT 90
#endif
// Avalance tuning (percent of UNL voting yes for us to vote yes)
#define AV_MIN_CONSENSUS 50
#define AV_AVG_CONSENSUS 60
#define AV_MAX_CONSENSUS 70
// We consider consensus reached at this percent agreement
#define AV_PCT_STOP 90
#endif