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

Conversation

@4meta5
Copy link
Contributor

@4meta5 4meta5 commented Jan 29, 2021

CC @JoshOrndorff

Follow up for #7941 to verify is_inherent_required implementations that return Ok(Some(Err)) require the given inherent in every block; if it is not present in a block, then check_extrinsics returns the inner error.

The changes make it mandatory to include the Extrinsic { function: Call::Test2(CallTest2::Something) } in every (test) block. If it is not included in a block, the error is returned.

original problem

We need to ensure that a storage value is set every block. Right now, we do that by panicking in on_finalize if the storage value isn't set. This panic is redundant if is_inherent_required -> Ok(Some(Err)) enforces that an inherent which sets the given storage item is included in every block.

@bkchr bkchr requested a review from gui1117 January 29, 2021 12:18
@bkchr bkchr added 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. labels Jan 29, 2021
Copy link
Contributor

@gui1117 gui1117 left a comment

Choose a reason for hiding this comment

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

@gui1117
Copy link
Contributor

gui1117 commented Jan 29, 2021

bot merge

@ghost
Copy link

ghost commented Jan 29, 2021

Waiting for commit status.

@ghost
Copy link

ghost commented Jan 29, 2021

Checks failed; merge aborted.

@gui1117
Copy link
Contributor

gui1117 commented Jan 29, 2021

can you merge master to make CI happy ?

@4meta5
Copy link
Contributor Author

4meta5 commented Jan 29, 2021

bot merge

@ghost
Copy link

ghost commented Jan 29, 2021

Error getting organization membership: Status code: 404 Not Found
Body:
Object({
"documentation_url": String(
"https://docs.github.com/rest/reference/orgs#check-organization-membership-for-a-user",
),
"message": String(
"User does not exist or is not a member of the organization",
),
})

@bkchr bkchr merged commit caff191 into paritytech:master Jan 29, 2021
@4meta5 4meta5 deleted the test-is-inherent-required branch January 29, 2021 15:45
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants