Skip to content

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

Merged
bkchr merged 3 commits into
paritytech:masterfrom
ParthDesai:add-recorded-keys-fn-in-proof-recorder
Dec 1, 2023
Merged

Add recorded_keys function to get recorded keys from the proof recorder#2561
bkchr merged 3 commits into
paritytech:masterfrom
ParthDesai:add-recorded-keys-fn-in-proof-recorder

Conversation

@ParthDesai

@ParthDesai ParthDesai commented Nov 30, 2023

Copy link
Copy Markdown
Contributor

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)

Comment thread substrate/primitives/trie/src/recorder.rs Outdated
@bkchr bkchr added the R0-no-crate-publish-required The change does not require any crates to be re-published. 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
Copy Markdown
Contributor Author

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

@ggwpez

ggwpez commented Nov 30, 2023

Copy link
Copy Markdown
Member

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
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-no-crate-publish-required The change does not require any crates to be re-published.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants