go-livepeer icon indicating copy to clipboard operation
go-livepeer copied to clipboard

Add param for block batch size

Open stronk-dev opened this issue 5 months ago • 1 comments

What does this pull request do? Explain your changes. (required) Some RPC providers have reduced their batch limit to 500. This PR allows node operators to modify the batch size.

Specific updates (required) Added a new blockBatchSize param to override the default of 1000 blocks for a getLogs call. The block watcher no longer uses a hardcoded value, instead uses the drilled parameter.

How did you test each of these updates (required) Not yet, will update the PR ...

Does this pull request close any open issues? No.

Checklist:

  • [ ] Read the contribution guide
  • [ ] make runs successfully
  • [ ] All tests in ./test.sh pass
  • [ ] README and other documentation updated
  • [ ] Pending changelog updated

stronk-dev avatar Jul 18 '25 08:07 stronk-dev

(Stil need to test this using the build artefacts from this PR)

stronk-dev avatar Jul 18 '25 08:07 stronk-dev