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

chore: move get methods to DatabaseProvider<DbTx> #9454

Merged
merged 3 commits into from
Jul 11, 2024
Merged

chore: move get methods to DatabaseProvider<DbTx> #9454

merged 3 commits into from
Jul 11, 2024

Conversation

joshieDo
Copy link
Collaborator

@joshieDo joshieDo commented Jul 11, 2024

  • adds BlockExecutionReader
  • moves read-only methods from DatabaseProvider<DbTx + DbTxMut> to DatabaseProvider<DbTx>

@joshieDo joshieDo added the A-db Related to the database label Jul 11, 2024
@joshieDo joshieDo requested a review from Rjected July 11, 2024 18:16
Comment on lines +863 to +864
let mut plain_accounts_cursor = self.tx.cursor_read::<tables::PlainAccountState>()?;
let mut plain_storage_cursor = self.tx.cursor_dup_read::<tables::PlainStorageState>()?;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was the only non-move change

@joshieDo joshieDo added this pull request to the merge queue Jul 11, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Jul 11, 2024
@joshieDo joshieDo added this pull request to the merge queue Jul 11, 2024
Merged via the queue into main with commit 1c27262 Jul 11, 2024
32 checks passed
@joshieDo joshieDo deleted the joshie/tr branch July 11, 2024 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-db Related to the database
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants