Refactor ScanTask in zebra-scan #8250
Labels
A-blockchain-scanner
Area: Blockchain scanner of shielded transactions
A-concurrency
Area: Async code, needs extra work to make it work properly.
C-cleanup
Category: This is a cleanup
C-enhancement
Category: This is an improvement
C-tech-debt
Category: Code maintainability issues
Motivation
The scan task in zebra-scan is could be simplified and more maintainable if it were refactored, possibly into a new tower service or by adding some of its logic to the existing
ScanService
.This would make it easier to:
Results
andSubscribeResults
requests will catch any results for a given key without extra logic)Possible Design
A design meeting could be worthwhile to discuss possible designs. We may want to consider the
Downloads
service in the inbound service and/or theQueuedBlocks
struct in the state service.Example:
We could replace the
scan_task
field on theScanService
withscan_tasks
The text was updated successfully, but these errors were encountered: