Merge pull request #10225 from filecoin-project/steb/fix-actor-state-check
fix: chain: make sure the head is empty, not the code
This commit is contained in:
commit
038686bea2
@ -291,7 +291,7 @@ func DumpActorState(i *ActorRegistry, act *types.Actor, b []byte) (interface{},
|
||||
|
||||
um := actInfo.vmActor.State()
|
||||
if um == nil {
|
||||
if act.Code != EmptyObjectCid {
|
||||
if act.Head != EmptyObjectCid {
|
||||
return nil, xerrors.Errorf("actor with code %s should only have empty object (%s) as its Head, instead has %s", act.Code, EmptyObjectCid, act.Head)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user