Skip to content

Commit

Permalink
Test with Retention = 20 mins, MaxLogsKept = 100,000
Browse files Browse the repository at this point in the history
  • Loading branch information
reductionista committed Aug 27, 2024
1 parent 707c330 commit f10f18e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/services/relay/evm/contract_transmitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,11 @@ func NewOCRContractTransmitter(
opt(newContractTransmitter)
}

// TODO It would be better to keep MaxLogsKept = 1 for the OCR contract transmitter instead of Retention. We are always interested only in the latest log.
// Although MaxLogsKept is present in the Filter struct, it is not supported by LogPoller yet.
err := lp.RegisterFilter(ctx, logpoller.Filter{
Name: transmitterFilterName(address),
EventSigs: []common.Hash{transmitted.ID},
Addresses: []common.Address{address}, MaxLogsKept: 1},
Retention: 10 * time.Minute,
Addresses: []common.Address{address}, MaxLogsKept: 100000},
)
if err != nil {
return nil, err
Expand Down

0 comments on commit f10f18e

Please sign in to comment.