onflow / onflow/rosetta

[Rosetta] Refactor state indexer

Open
#58 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.