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

Add recorded_keys function to get recorded keys from the proof recorder #2561

Merged

Conversation

ParthDesai
Copy link
Contributor

@ParthDesai ParthDesai commented Nov 30, 2023

Description

  • What does this PR do?
    This PR adds function to get recorded keys from proof recorder instance
  • Why are these changes needed?
    This change is required to get the keys accessed by the trie backend during the runtime execution. The keys are already tracked by proof recorder, just aren't exposed publicly.
  • How were these changes implemented and what do they affect?
    The changes are implemented by adding a public function in proof recorder that simply clones the recorded_keys field. It is pure addition of function and AFAIK does not affect anything.

Checklist

  • My PR includes a detailed description as outlined in the "Description" section above
  • My PR follows the labeling requirements of this project (at minimum one label for T
    required)
  • I have made corresponding changes to the documentation (if applicable)
  • I have added tests that prove my fix is effective or that my feature works (if applicable)

substrate/primitives/trie/src/recorder.rs Outdated Show resolved Hide resolved
@bkchr bkchr added the R0-silent Changes should not be mentioned in any release notes label Nov 30, 2023
@bkchr bkchr requested a review from a team November 30, 2023 08:53
Co-authored-by: Bastian Köcher <git@kchr.de>
@ParthDesai
Copy link
Contributor Author

@bkchr Review bot is still failing. How can we fix it?

@ggwpez
Copy link
Member

ggwpez commented Nov 30, 2023

I pinged it internally to get approval for the bot. But maybe Basti force merges it 😉

@bkchr bkchr merged commit 5213263 into paritytech:master Dec 1, 2023
113 of 114 checks passed
bgallois pushed a commit to duniter/duniter-polkadot-sdk that referenced this pull request Mar 25, 2024
…rder (paritytech#2561)

# Description

- What does this PR do?
This PR adds function to get recorded keys from proof recorder instance
- Why are these changes needed?
This change is required to get the keys accessed by the trie backend
during the runtime execution. The keys are already tracked by proof
recorder, just aren't exposed publicly.
- How were these changes implemented and what do they affect?
The changes are implemented by adding a public function in proof
recorder that simply clones the `recorded_keys` field. It is pure
addition of function and AFAIK does not affect anything.


# Checklist

- [x] My PR includes a detailed description as outlined in the
"Description" section above
- [ ] My PR follows the [labeling requirements](CONTRIBUTING.md#Process)
of this project (at minimum one label for `T`
  required)
- [ ] I have made corresponding changes to the documentation (if
applicable)
- [ ] I have added tests that prove my fix is effective or that my
feature works (if applicable)

---------

Co-authored-by: Bastian Köcher <git@kchr.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants