Pulse: Set required signatures to N-1 for integration tests

This commit is contained in:
Doyle 2020-08-14 18:22:56 +10:00
parent c98c09df97
commit 331f630d24
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
namespace service_nodes {
constexpr size_t PULSE_QUORUM_ENTROPY_LAG = 21; // How many blocks back from the tip of the Blockchain to source entropy for the Pulse quorums.
#if 1
#if defined(LOKI_ENABLE_INTEGRATION_TEST_HOOKS)
constexpr auto PULSE_ROUND_TIME = 20s;
constexpr auto PULSE_WAIT_FOR_HANDSHAKES_DURATION = 3s;
constexpr auto PULSE_WAIT_FOR_OTHER_VALIDATOR_HANDSHAKES_DURATION = 3s;
@ -17,7 +17,7 @@ namespace service_nodes {
constexpr auto PULSE_WAIT_FOR_SIGNED_BLOCK_DURATION = 5s;
constexpr size_t PULSE_QUORUM_NUM_VALIDATORS = 7;
constexpr size_t PULSE_BLOCK_REQUIRED_SIGNATURES = 7; // A block must have exactly N signatures to be considered properly
constexpr size_t PULSE_BLOCK_REQUIRED_SIGNATURES = 6; // A block must have exactly N signatures to be considered properly
#else
constexpr auto PULSE_ROUND_TIME = 60s;
constexpr auto PULSE_WAIT_FOR_HANDSHAKES_DURATION = 10s;