refactor(nodebuilder/fraud): Change from `fx.Hook` to `OnStart` and `OnStop` annotations

Open Beginner friendly
#1,178 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Stale
Tech stack
go
Domain
backend

Research direction

Start in nodebuilder/fraud/module.go and compare the fraud module construction with the other nodebuilder modules that already migrated away from fx.Hook. Change the fraud module to use OnStart and OnStop annotations, then verify that the module no longer uses fx.Hook and retains its lifecycle behavior.

Written by the indexing model from the issue text.

Description

area:node good first issue

The other nodebuilder modules migrate away from using fx.Hook where possible, this can also be done when constructing the fraud module in nodebuilder/fraud/module.go.

Dominant language
Go
Stars
998
Forks
1.1k
Avg merge
1d 2h
Merged PRs (30d)
31

Contributor guide

Open the contributing guide

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.

More from celestiaorg/celestia-node

All issues in celestiaorg/celestia-node

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.