CodeChain-io / CodeChain-io/codechain-indexer

Use trace API

Open
#305 0 comments 0 reactions 0 assignees View on GitHub
optimization update
Dominant language
TypeScript
Stars
21
Forks
15
PR merge metrics
No merged PRs in 30d

Description

Currently, the indexer is re-calculating
* stakeholder reward and its related fee calculation
* signer address
* etc

Re-calculating causes a bug and makes the indexer unstable and slow. There is no need to calculate them if a node provides the calculations through RPC.

Related issue: https://github.com/CodeChain-io/codechain/issues/1676

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the indexer logic that recalculates stakeholder rewards, related fees, and signer addresses; no specific files or tests are named. Review related issue #1676 for the trace API context, and consider the work complete when these values come from node RPC responses and the reported instability and slowness are addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend, blockchain
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.