Add assertion that migrations with & without cache are the same
This commit is contained in:
parent
027ea9ffd0
commit
de87b02085
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user