[Rosetta] Refactor state indexer
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 16
- Forks
- 8
- Avg merge
- 5d 55m
- Merged PRs (30d)
- 1
Description
Refactor processBlock function as it is 1000-line long, and has ~50 cycles inside, some of which reach 5-6 nested levels.
Other functions like indexLiveSpork or runWorker are also too big, hard to maintain and reason about.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the processBlock, indexLiveSpork, and runWorker functions in the Go codebase and read their callers and related indexing flow. The issue provides no target files, decomposition plan, tests, or measurable completion criteria, so clarify the desired boundaries and validation approach before starting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- backend, blockchain
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100