Add assertion that migrations with & without cache are the same

This commit is contained in:
Aayush 2022-10-13 15:53:36 -04:00
parent 027ea9ffd0
commit de87b02085

View File

@ -145,6 +145,11 @@ var migrationsCmd = &cli.Command{
fmt.Println("new cid", newCid2)
if newCid1 != newCid2 {
return xerrors.Errorf("got different results with and without the cache: %s, %s", newCid1,
newCid2)
}
err = checkStateInvariants(ctx, blk.ParentStateRoot, newCid2, bs)
if err != nil {
return err