Commit Graph

8 Commits (main)

Author SHA1 Message Date
derekpierre 9f8dfffd11 Allow EventScanner to obtain different events as part of the same call to reduce overall rpc calls. Multiple events can be obtained by one call, instead of making one getLogs call per event.
EventScanner will no longer take specified filters since more than one event type can be obtained at a time. We don't utilize event specific filters currently anyway - and we probably won't need to.
2024-02-13 10:53:03 -05:00
derekpierre 6545dc3e88 Make start chunk size optional and default to min chunk size unless specified otherwise. Having 20 as the default negates the initial use of min chunk size which seems like a waste. I can see a potential usage for not wanting to use the min chunk size for a specific case of scanning a large number of blocks but seems unnecessary otherwise. 2024-02-13 10:53:03 -05:00
derekpierre 19caae9a2d Fix SimpleTask to actually use class INTERVAL value instead of its own - caused EventScannerTask to use 60s instead of the 120s it had defined. 2024-02-13 10:53:03 -05:00
derekpierre ab738805cb Re-inforce scanner test that larger chunk sizes do result in lower rpc calls. 2024-02-13 10:53:03 -05:00
derekpierre 376e34073d Harden event scanner tests. 2023-05-25 11:25:04 -04:00
derekpierre c980046afb Fix issue with chunk size not being corrected for when it goes past the end block. 2023-05-24 17:00:44 -04:00
derekpierre b8b70220fa Additional event scanner tests. 2023-05-24 15:19:09 -04:00
derekpierre f57616cdd8 Cleanup of chain reorg code - push to underlying EventScanner. Add initial test for estimating chunk size. 2023-05-24 20:22:57 +02:00