You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
Add state recovery command execution to mainchain interoperability module.
let storeQueries be an empty array
for each entry in trs.params.storeEntries:
# The recover function corresponding to the module ID applies the recovery logic
route processing logic to the module given by trs.params.moduleID
recover(trs.params.chainID, trs.params.moduleID, entry.storePrefix, entry.storeKey, entry.storeValue)
if the previous call fails:
execution fails and trs is invalid
emptyStore = empty bytes # Define an empty store entry
query = { key: entry.storekey,
value: SHA-256(emptyStore),
bitmap: entry.bitmap}
push query to storeQueries
terminatedStateAccount(trs.params.chainID).stateRoot = SMTCalculateRoot(trs.params.siblingHashes, storeQueries)
Acceptance Criteria
Add unit tests for execution command
Import this class for use in sidechain interoperability module
The text was updated successfully, but these errors were encountered:
Description
Add state recovery command execution to mainchain interoperability module.
Acceptance Criteria
The text was updated successfully, but these errors were encountered: