Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lower default catchup page size #29

Merged
merged 1 commit into from
Sep 2, 2022
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
4 changes: 2 additions & 2 deletions config.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ nav_order: 2
|Key|Description|Type|Default Value|
|---|-----------|----|-------------|
|blockTimestamps|Whether to include the block timestamps in the event information|`boolean`|`true`
|catchupPageSize|Number of blocks to query per poll when catching up to the head of the blockchain|`int`|`2500`
|catchupThreshold|How many blocks behind the chain head an event stream or listener must be on startup, to enter catchup mode|`int`|`2500`
|catchupPageSize|Number of blocks to query per poll when catching up to the head of the blockchain|`int`|`500`
|catchupThreshold|How many blocks behind the chain head an event stream or listener must be on startup, to enter catchup mode|`int`|`500`
|checkpointBlockGap|The number of blocks at the head of the chain that should be considered unstable (could be dropped from the canonical chain after a re-org). Unless events with a full set of confirmations are detected, the restart checkpoint will this many blocks behind the chain head.|`int`|`50`
|filterPollingInterval|The interval between polling calls to a filter, when checking for newly arrived events|[`time.Duration`](https://pkg.go.dev/time#Duration)|`1s`

Expand Down
4 changes: 2 additions & 2 deletions internal/ethereum/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ const (
DefaultListenerPort = 5102
DefaultGasEstimationFactor = 1.5

DefaultCatchupPageSize = 2500
DefaultEventsCatchupThreshold = 2500
DefaultCatchupPageSize = 500
DefaultEventsCatchupThreshold = 500
DefaultEventsCheckpointBlockGap = 50

DefaultRetryInitDelay = "100ms"
Expand Down