Skip to content
This repository was archived by the owner on Jun 12, 2023. It is now read-only.

Reduce invalid block age threshold #1707

Merged
merged 1 commit into from
May 31, 2022
Merged
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
4 changes: 2 additions & 2 deletions src/poc/miner_poc_grpc_client_statem.erl
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@
%% max number of stream down events within the STREAM_STABILITY_CHECK_TIMEOUT period
%% after which we will select a new validator
-define(MAX_DOWN_EVENTS_IN_PERIOD, (?STREAM_STABILITY_CHECK_TIMEOUT / ?RECONNECT_DELAY) - 2).
-define(BLOCK_AGE_TIMEOUT, 450000).
%% Maximum block age returned by a connected validator before triggering an instability reconnect
%% Measured in seconds as this is the unit of time returned by the validator for block_age
-define(MAX_BLOCK_AGE, 900).
-define(MAX_BLOCK_AGE, 600).
-define(BLOCK_AGE_TIMEOUT, (?MAX_BLOCK_AGE / 2) * 1000).
%% ets table name for check target reqs cache
-define(CHECK_TARGET_REQS, check_target_reqs).
-type data() :: #data{}.
Expand Down