dymensionxyz / dymension-rdk

Framework for building highly scalable RollApps
Apache License 2.0
98 stars 54 forks source link

Add command to validate rollapp state against hub state #493

Open omritoptix opened 3 months ago

omritoptix commented 3 months ago

In order to validate snapshot validity pre running the rollapp we should have the ability to validate the rollapp state against the hub state and alert the user in case of a mismatch in terms of app-hash.

[edit]

upon extracting the snapshot, we get access to the database. Open the database, check for the latest state and compare it with the hub state

omritoptix commented 1 month ago

current thoughts are that it's not MVP material as this can be done manually by the operator and if it doesn't match the hub state it will be detected anyway using detection of comparing to hub state later on.