Fix state tree version assert
This commit is contained in:
parent
24da8bdb34
commit
4443ac662f
@ -1778,9 +1778,9 @@ func upgradeActorsV11Common(
|
|||||||
return cid.Undef, xerrors.Errorf("failed to decode state root: %w", err)
|
return cid.Undef, xerrors.Errorf("failed to decode state root: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if stateRoot.Version != types.StateTreeVersion5 {
|
if stateRoot.Version != types.StateTreeVersion4 {
|
||||||
return cid.Undef, xerrors.Errorf(
|
return cid.Undef, xerrors.Errorf(
|
||||||
"expected state root version 4 for actors v10 upgrade, got %d",
|
"expected state root version 4 for actors v11 upgrade, got %d",
|
||||||
stateRoot.Version,
|
stateRoot.Version,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user