mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-09-07 16:34:06 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user