lotus icon indicating copy to clipboard operation
lotus copied to clipboard

ChainIndexer should be able to GC at a cadence of epochs instead of days

Open aarshkshah1992 opened this issue 5 months ago • 4 comments

Checklist

  • [X] This is not brainstorming ideas. If you have an idea you'd like to discuss, please open a new discussion on the lotus forum and select the category as Ideas.
  • [X] I have a specific, actionable, and well motivated feature request to propose.

Lotus component

  • [X] lotus daemon - chain sync
  • [ ] lotus fvm/fevm - Lotus FVM and FEVM interactions
  • [ ] lotus miner/worker - sealing
  • [ ] lotus miner - proving(WindowPoSt/WinningPoSt)
  • [ ] lotus JSON-RPC API
  • [ ] lotus message management (mpool)
  • [ ] Other

What is the motivation behind this feature request? Is your feature request related to a problem? Please describe.

This is for https://github.com/filecoin-project/lotus/pull/12421#discussion_r1760555985.

At present, ChainIndexer can only gc eth_tx_hash at a cadence of days. However, we should change this so it has a cadence of epochs.

Describe the solution you'd like

Update the ChainIndex GC logic and DDL queries so it can remove entries from the eth_tx_hash table at a cadence of epochs.

Describe alternatives you've considered

No response

Additional context

No response

aarshkshah1992 avatar Sep 16 '24 09:09 aarshkshah1992