mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 04:39:24 +00:00
`panic = "unwind"` was originally a requirement of Substrate, notably due to its [native runtime](https://github.com/paritytech/substrate/issues/10874). This does not mean all of Serai should use this setting however. As the native runtime has been removed, we do no longer need this for the Substrate node. With a review of our derivative, a panic guard is only used when fetching the version from the runtime, causing an error on boot if a panic occurs. Accordingly, we shouldn't have a need for `panic = "unwind"` within the node, and the runtime itself should be fine. The rest of Serai's services already registered bespoke hooks to ensure any panic caused the process to exit. Those are left as-is, even though they're now unnecessary.
8.0 KiB
8.0 KiB