I got a problem with upgrading my chain
I've upgraded my chain from version A (Client+runtime) to version B (Client+runtime). I remove some host functions in client version B because runtime version B don't need that anymore.
The upgrade proceeds as follows:
- I upgrade the runtime first and there is no problem. The chain continues to function.
- I upgrade the client later and the problem happened.
I have 4 nodes: 3 validator nodes and 1 public RPC node. After upgrading the client, 3 validators still function normally. Blocks are still being produced. However, it's RPC node the problem.
The RPC node runs with this message in the log Cannot create a runtime error=Other(\"runtime requires function imports which are not present on the host: (the list of host functions I already removed)
. After some time, the RPC node stops to receive external websocket connections, and after some time, it automatically restarts. And the loop continues. the RPC node still able to import blocks from the network while it's running.
I upgrade the substrate version from polkadot-v0.9.18 to polkadot-v0.9.22. And it's a solochain only.