Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

fix(in_mem): fix the clone logic #14038

Merged
merged 1 commit into from
Apr 29, 2023

Conversation

yjhmelody
Copy link
Contributor

@yjhmelody yjhmelody commented Apr 28, 2023

The clone logic is wrong. Should clone Arc rather than clone inner BlockchainStorage

Copy link
Contributor

@cheme cheme left a comment

Choose a reason for hiding this comment

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

LGTM.

From what I read (substrate only), this clone is not really use, but seems important to fix it (can be a footgun).

@bkchr bkchr added B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). labels Apr 29, 2023
@bkchr bkchr merged commit 74b2c92 into paritytech:master Apr 29, 2023
gpestana pushed a commit that referenced this pull request May 4, 2023
@yjhmelody yjhmelody deleted the fix-in-mem-blockchain branch May 25, 2023 15:24
nathanwhit pushed a commit to nathanwhit/substrate that referenced this pull request Jul 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants