skalenetwork / filestorage

SKALE filestorage extension to EVM
GNU Affero General Public License v3.0
20 stars 3 forks source link

Consider using UnsafeRegion in filestorage operation #74

Closed sync-by-unito[bot] closed 3 days ago

sync-by-unito[bot] commented 2 years ago

Investigate possibilities when skaled's crash in the middle of filestorage operation could lead to unrecoverable error. Use UnsafeRegion in these places:

{
UnsafeRegion::lock ur_lock;
...
}

With this, if crash happens inside ur_lock's scope, skaled will exit with code 200 (causing restart fro snapshot).

┆Issue is synchronized with this Jira Task