Skip to content

Commit c2112e3

Browse files
committed
archive: Introduce storageDiffError event
Signed-off-by: Alexandru Vasile <[email protected]>
1 parent cb124be commit c2112e3

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

src/api/archive_unstable_storageDiff.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ Where `subscription` is the value returned by this function, and `result` can be
4949

5050
### storageDiff
5151

52-
The JSON object returned by this function has the following format:
53-
5452
```json
5553
{
5654
"event": "storageDiff",
@@ -79,8 +77,6 @@ The `storageDiff` event is generated for each storage difference between the two
7977

8078
### storageDiffDone
8179

82-
The JSON object returned by this function has the following format:
83-
8480
```json
8581
{
8682
"event": "storageDiffDone",
@@ -89,6 +85,21 @@ The JSON object returned by this function has the following format:
8985

9086
This event is always generated after all `storageDiff` events have been generated.
9187

88+
No more events will be generated after a `storageDiffDone` event.
89+
90+
### storageDiffError
91+
92+
```json
93+
{
94+
"event": "storageDiffError",
95+
"error": "...",
96+
}
97+
```
98+
99+
`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.
100+
101+
No more events will be generated after a `storageDiffError` event.
102+
92103
## Overview
93104

94105
This function calculates the storage difference between two blocks. The storage difference is calculated by comparing the storage of the `previousHash` block with the storage of the `hash` block. If the `previousHash` parameter is not provided, the storage difference is calculated between the parent of the `hash` block and the `hash` block.

0 commit comments

Comments
 (0)