Handle getStorage calls for old blocks (#145)

* Handle getStorage calls for old blocks

* Refactor getStorage code in mobymask watcher

* Fix returning proof as null
This commit is contained in:
2022-07-20 10:37:17 +05:30
committed by GitHub
parent e2668690b5
commit 58bbf4d756
15 changed files with 269 additions and 175 deletions
@@ -134,6 +134,8 @@ class SyncStatus implements SyncStatusInterface {
latestIndexedBlockNumber: number;
latestCanonicalBlockHash: string;
latestCanonicalBlockNumber: number;
initialIndexedBlockHash: string;
initialIndexedBlockNumber: number;
constructor () {
this.id = 0;
@@ -143,6 +145,8 @@ class SyncStatus implements SyncStatusInterface {
this.latestIndexedBlockNumber = 0;
this.latestCanonicalBlockHash = '0';
this.latestCanonicalBlockNumber = 0;
this.initialIndexedBlockHash = '0';
this.initialIndexedBlockNumber = 0;
}
}