-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
archive: Use subscriptions for
storageDiff
(#161)
* archive: Use subscriptions for storageDiff Signed-off-by: Alexandru Vasile <[email protected]> * archive: Add stop method Signed-off-by: Alexandru Vasile <[email protected]> * archive: Move previousHash as last parameter Signed-off-by: Alexandru Vasile <[email protected]> * archive: Make items non-optional Signed-off-by: Alexandru Vasile <[email protected]> * archive: Introduce storageDiffError event Signed-off-by: Alexandru Vasile <[email protected]> * archive: Simplify error code Signed-off-by: Alexandru Vasile <[email protected]> * Update src/api/archive_unstable_stopStorageDiff.md Co-authored-by: Niklas Adolfsson <[email protected]> * Update src/api/archive_unstable_stopStorageDiff.md Co-authored-by: Niklas Adolfsson <[email protected]> * archive: Move previousHash below items description Signed-off-by: Alexandru Vasile <[email protected]> --------- Signed-off-by: Alexandru Vasile <[email protected]> Co-authored-by: Niklas Adolfsson <[email protected]>
- Loading branch information
Showing
2 changed files
with
66 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# archive_unstable_stopStorageDiff | ||
|
||
**Parameters**: | ||
|
||
- An opaque string that was returned by `archive_unstable_storageDiff`. | ||
|
||
**Return value**: *null* | ||
|
||
Stops a subscription started with `archive_unstable_storageDiff`. Has no effect if the opaque string is invalid or refers to a subscription that has already emitted a `{"event": "storageDiffDone"}` event. | ||
|
||
JSON-RPC client implementations must be aware that, due to the asynchronous nature of JSON-RPC client <-> server communication, they might still receive chain updates notifications, for example because these notifications were already in the process of being sent back by the JSON-RPC server. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters