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

feat: eth: populate tx hash database on startup #10119

Merged
merged 1 commit into from
Feb 9, 2023

Conversation

geoff-vball
Copy link
Contributor

Related Issues

Closes #10044

Proposed Changes

Checks all messages from the top of the chain down to a specified height (no lower than the v10 upgrade) and adds any relevant transaction hash mappings to the database. This will allow us to get transaction hash mappings when we import snapshots, or when users enable the feature for the first time.

Additional Info

Checklist

Before you mark the PR ready for review, please make sure that:

  • Commits have a clear commit message.
  • PR title is in the form of of <PR type>: <area>: <change being made>
    • example: fix: mempool: Introduce a cache for valid signatures
    • PR type: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, test
    • area, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps
  • New features have usage guidelines and / or documentation updates in
  • Tests exist for new functionality or change in behavior
  • CI is green

@geoff-vball geoff-vball changed the base branch from master to release/v1.20.0 January 26, 2023 04:52
@geoff-vball geoff-vball force-pushed the gstuart/tx-hash-on-simport-napshot branch 5 times, most recently from 4c5182d to 3fa5057 Compare January 30, 2023 08:31
@geoff-vball geoff-vball marked this pull request as ready for review January 30, 2023 08:32
@geoff-vball geoff-vball requested a review from a team as a code owner January 30, 2023 08:32
@geoff-vball
Copy link
Contributor Author

geoff-vball commented Jan 30, 2023

I tested this on hyperspace by generating my own snapshot, and then starting a new node from the snapshot, making sure nothing fails, and all eth txs that the snapshot has messages for are added to the db.

I just want to test this with a pruned store and make sure everything is okay there.

@geoff-vball geoff-vball force-pushed the gstuart/tx-hash-on-simport-napshot branch from 3fa5057 to e0326d9 Compare January 30, 2023 21:33
@geoff-vball geoff-vball requested a review from arajasek February 1, 2023 22:46
@jennijuju jennijuju requested review from travisperson and removed request for arajasek February 3, 2023 03:00
@jennijuju jennijuju added this to the Network v18 milestone Feb 4, 2023
@magik6k magik6k merged commit 75f9b7d into release/v1.20.0 Feb 9, 2023
@magik6k magik6k deleted the gstuart/tx-hash-on-simport-napshot branch February 9, 2023 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Populating the index on snapshot import
3 participants