-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Enabled improved panic error reporting by default #12763
Enabled improved panic error reporting by default #12763
Conversation
While this doesn't introduce the host function, still lets tag it with the label to make people aware that we will use the new host function. Regarding companions, I think we can just wait until some other change is merged in Polkadot/Cumulus that will pull in this pr. |
Before we're shipping this into production forever, I must say that I'm personally really unhappy with this function, for three reasons:
If I had some sort of veto right I would 100% veto this. |
I understand the concerns regarding the naming. Fine by me to rename this. So what would be the naming I'm also okay with making the @koute WDYT? |
Discussion moved here: w3f/polkadot-spec#587 |
WASM FFI has no concept of functions that never return. And we use this inside of a
True, it can be called at any time, if you manually plomp down an
With all due respect, I kinda wish you'd veto'd this, err, 15 versions of Polkadot ago, instead of just now when it's already available on essentially all of the nodes. (: I don't really care if we change this. You're right that this might be slightly confusing for people implementing Polkadot hosts. (Runtime writers, I believe, are not going to care, as they won't be directly calling the underlying host function.) As I've said in the original PR, I'm fine with going with whatever the consensus is. Just please note that changing this will further delay enabling this feature. |
The fact that this
Similarly, this is a Rust-specific concern. How convenient it is to call a function in source code shouldn't have any influence in the design of the runtime <-> host interface.
There are two different ways to interpret the name
We have absolutely no concept of which runtime functions are stable and which are unstable. Conceptually, to me, a runtime function becomes stable when it starts being used, as this is pragmatically speaking the moment when we can't change it anymore. I cannot know, at the moment when a function is added to the source code, whether it will be changed before it's stabilized. We have a lot of things available on all the nodes and that aren't used, another example being #12639 and we removed it without any problem. |
Left my feedback w3f/polkadot-spec#587 (comment) |
Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions. |
This PR will make it so that any runtime built with require the
abort_on_panic
host function first introduced in #10741.(This still needs PRs for
polkadot
andcumulus
bumping the version ofsubstrate
they use for this to take effect; I'll make the relevant PRs after this one gets merged, as I don't really want to deal with the jankiness of companions if I don't have to.)