Skip to content

Commit

Permalink
Reset factory
Browse files Browse the repository at this point in the history
  • Loading branch information
ferglor committed Jul 10, 2024
1 parent 7413511 commit b3cbf7d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func NewOptions(finalityDepth int64, chainID *big.Int) LogTriggersOptions {
// NOTE: o.LookbackBlocks should be set only from within tests
func (o *LogTriggersOptions) Defaults(finalityDepth int64) {
if o.LookbackBlocks == 0 {
lookbackBlocks := int64(100)
lookbackBlocks := int64(128)
if lookbackBlocks < finalityDepth {
lookbackBlocks = finalityDepth
}
Expand All @@ -86,7 +86,7 @@ func (o *LogTriggersOptions) Defaults(finalityDepth int64) {
func (o *LogTriggersOptions) defaultBlockRate() uint32 {
switch o.chainID.Int64() {
case 42161, 421613, 421614: // Arbitrum
return 2
return 4
default:
return 1
}
Expand All @@ -99,6 +99,6 @@ func (o *LogTriggersOptions) defaultLogLimit() uint32 {
case 10, 420, 56, 97, 137, 80001, 43113, 43114, 8453, 84531: // Optimism, BSC, Polygon, Avax, Base
return 5
default:
return 1
return 2
}
}

0 comments on commit b3cbf7d

Please sign in to comment.