Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(chainindex): recompute tipset when we find no receipts #12614

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

rvagg
Copy link
Member

@rvagg rvagg commented Oct 18, 2024

Can't backfill from snapshot without doing this earlier, snapshots don't have receipts either.

@aarshkshah1992
Copy link
Contributor

My only contention here would be if it's needed/if the Indexer is the right place to do this.

The right way to solve this is to include receipts in the snapshots. Making every snapshot synced node recompute tipsets in the snapshot to re-generate the receipts sounds excessive.

@rvagg
Copy link
Member Author

rvagg commented Oct 18, 2024

The right way to solve this is to include receipts in the snapshots

Unlikely to happen, everyone's been working to make snapshots smaller, and with f3 they're likely to trim them even further. Adding at least one more block per message is not going to be a small addition, and the user-base for consuming these is going to be very tiny. Who else is going to backfill events like this other than RPC providers who have spun up a new node and want to maximise their history depth? I'm doubtful they even do anything like this today—we don't have recompute in the current backfill so I'd really like to know what they are doing now.

@aarshkshah1992
Copy link
Contributor

aarshkshah1992 commented Oct 18, 2024

@rvagg

we don't have recompute in the current backfill so I'd really like to know what they are doing now.

I am fairly confident that they return "not founds/errors" right now for the snapshot tipsets.
Given that most RPC providers restart only once every few weeks, they probably get away with it without it being a big issue.

@aarshkshah1992
Copy link
Contributor

@rvagg Okay, I see your point. Let's go ahead with this change. But let's do it when user kicks off a manual backfill (which is what your PR is doing anyways) -> not when the snapshot is populated.

@rvagg rvagg merged commit 70aaef4 into feat/msg-eth-tx-index Oct 21, 2024
73 of 76 checks passed
@rvagg rvagg deleted the rvagg/chainindex/recompute-tipset branch October 21, 2024 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🎉 Done
Development

Successfully merging this pull request may close these issues.

2 participants