polytope-labs / hyperbridge

Hyperbridge is a hyperscalable coprocessor for verifiable, cross-chain interoperability
https://docs.hyperbridge.network/
Apache License 2.0
107 stars 33 forks source link

Reading state from a pruned relay chain block #296

Closed Szegoo closed 3 weeks ago

Szegoo commented 3 weeks ago

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