Created
June 20, 2022 14:45
-
-
Save jeremyorme/afc676937a05e01a3b11a8c1d80ff7ef to your computer and use it in GitHub Desktop.
DbStoreUpdater._isStoreValid method
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
_isStoreValid(store: IStore|null) { | |
// check_store_exists(IStore) | |
if (!store) { | |
console.log('[Db] ERROR: Store structure not found (address = ' + this._address + ')'); | |
return false; | |
} | |
// check_store_syntax(IStore) | |
if (!validateStore(store)) { | |
console.log('[Db] ERROR: Store structure invalid (address = ' + this._address + ')'); | |
return false; | |
} | |
return store.entryBlockLists.every(entryBlockList => this._isEntryBlockListValid(entryBlockList)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment