Skip to content

Commit

Permalink
Merge pull request #29 from kaleido-io/catchup-defaults
Browse files Browse the repository at this point in the history
Lower default catchup page size
  • Loading branch information
nguyer authored Sep 2, 2022
2 parents 84e3108 + 327536d commit d227820
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit d227820

Please sign in to comment.