[go: up one dir, main page]

Kernel: fix temporary WORLD_STATE_PATH

What

This MR updates the temporary path of the world state in safe storage, replacing the fixed constant with a dynamic path that prefixes the world state with the temporary (TMP_PATH) directory.

Why

While this change does not impact the current state of the code, it addresses a critical issue when transitioning to a multichain setup. Consider an example with two chains: previously, if the first chain had a small blueprint and the second chain had a larger one, the safe storage could be promoted incorrectly. This happened because the first chain's blueprint finalized, while the second chain’s blueprint required a reboot.

MR !16502 (merged) introduces chain-specific paths by incorporating chain_id, ensuring independent world state paths for different chains. This MR extends that approach to temporary world states, eliminating the risk of promoting an incorrect blueprint.

Edited by Luciano Freitas

Merge request reports

Loading