polytope-labs/hyperbridge

Reading state from a pruned relay chain block

Closed this issue · 0 comments

Recently, our parachain on Rococo was down for about 40 minutes due to an unrelated issue. Once it was back online, block production was failing because the ISMP inherent was attempting to read a relay chain block that had been pruned by the time the chain resumed. We resolved the issue by manually disabling the inherent on the client side. Once block production resumed, we were able to re-enable it.

This issue could have been prevented if, instead of stalling block production, the inherent skipped the pruned block.

The error message:

UnknownBlock: State already discarded for 0x066781b71140ad16b12cc4c0feffd8a639f201cd8483f70d91cc50144fb927d4