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

WASM executor: add OutputExceedsBounds variant to Error #13841

Merged

Conversation

mrcnski
Copy link

@mrcnski mrcnski commented Apr 6, 2023

PULL REQUEST

Overview

Previously this was a WasmError, which is intended for runtime construction errors. However this led to confusion as output-exceeds-bounds occurs due to execution of validate_block.

(Please review closely and correct me if I'm mistaken about something, the error story here is pretty confusing.)

Previously this was a `WasmError`, which is intended for runtime construction errors. However this
led to confusion as output-exceeds-bounds occurs due to execution of `validate_block`.
@mrcnski mrcnski 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 Apr 6, 2023
@mrcnski mrcnski requested review from NikVolf and bkchr April 6, 2023 11:13
@mrcnski mrcnski requested a review from koute as a code owner April 6, 2023 11:13
@bkchr bkchr removed the request for review from NikVolf April 6, 2023 16:08
Copy link
Contributor

@koute koute left a comment

Choose a reason for hiding this comment

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

In general it'd be nice to just completely get rid of the Other variant if possible.

@mrcnski
Copy link
Author

mrcnski commented Apr 7, 2023

In general it'd be nice to just completely get rid of the Other variant if possible.

Agreed and I thought about it, but didn't feel like doing it. 😛 Raised #13853.

@mrcnski
Copy link
Author

mrcnski commented Apr 7, 2023

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 72dd574 into master Apr 7, 2023
@paritytech-processbot paritytech-processbot bot deleted the mrcnski/wasm-executor-outputexceedsbounds-error branch April 7, 2023 10:35
nathanwhit pushed a commit to nathanwhit/substrate that referenced this pull request Jul 19, 2023
…ch#13841)

* WASM executor: add `OutputExceedsBounds` variant to `Error`

Previously this was a `WasmError`, which is intended for runtime construction errors. However this
led to confusion as output-exceeds-bounds occurs due to execution of `validate_block`.

* Fix warning
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.

3 participants