From 3b8d2ba35b6336d7a8a8f26f292fad7cbf33bf70 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Wed, 27 Jul 2022 10:57:39 +0200 Subject: [PATCH] Fix #5 --- src/api/chainHead_unstable_storage.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/api/chainHead_unstable_storage.md b/src/api/chainHead_unstable_storage.md index f63ca54c7ff9..0605b2fbc159 100644 --- a/src/api/chainHead_unstable_storage.md +++ b/src/api/chainHead_unstable_storage.md @@ -67,6 +67,23 @@ The `inaccessible` event indicates that the storage value has failed to be retri No more event will be generated with this `subscription`. +### error + +```json +{ + "event": "error", + "error": "..." +} +``` + +The `error` event indicates a problem during the storage access, such as failing to parse the block header to obtain the state root hash. + +Contrary to the `inaccessible` event, querying the same storage value again in the future will not succeed. + +`error` is a human-readable error message indicating why the call has failed. This string isn't meant to be shown to end users, but is for developers to understand the problem. + +No more event will be generated with this `subscription`. + ### disjoint ```json