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

Remove incorrect debug assertion in state-db#9283

Merged
1 commit merged intomasterfrom
a-remove-state-pin-assert
Jul 6, 2021
Merged

Remove incorrect debug assertion in state-db#9283
1 commit merged intomasterfrom
a-remove-state-pin-assert

Conversation

@arkpar
Copy link
Copy Markdown
Member

@arkpar arkpar commented Jul 6, 2021

This removes an assertion that pending state can't be pinned. There's a race that allows for such states to be accessed indeed. Since in-memory changes to state-db are applied after the blockchain metadata changes. Pinning such states is a no-op anyway, since all pins are short-lived and by the time metadata changes are applied it is guaranteed that the state won't be reverted.
See paritytech/polkadot#3414 for context.

@arkpar arkpar added A0-please_review Pull request needs code review. 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 labels Jul 6, 2021
@bkchr
Copy link
Copy Markdown
Member

bkchr commented Jul 6, 2021

bot merge

@ghost
Copy link
Copy Markdown

ghost commented Jul 6, 2021

Trying merge.

@ghost
Copy link
Copy Markdown

ghost commented Jul 6, 2021

Bot will approve on the behalf of @bkchr, since they are a team lead, in an attempt to reach the minimum approval count

@ghost ghost merged commit 5af7052 into master Jul 6, 2021
@ghost ghost deleted the a-remove-state-pin-assert branch July 6, 2021 09:51
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-please_review Pull request needs code review. 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.

2 participants