fix: use the parent state when listing actors

To be consistent with other commands.
This commit is contained in:
Steven Allen 2021-04-28 23:35:27 -07:00
parent a456f394ac
commit 4867425685

View File

@ -854,10 +854,7 @@ func (sm *StateManager) ListAllActors(ctx context.Context, ts *types.TipSet) ([]
if ts == nil {
ts = sm.cs.GetHeaviestTipSet()
}
st, _, err := sm.TipSetState(ctx, ts)
if err != nil {
return nil, err
}
st := ts.ParentState()
stateTree, err := sm.StateTree(st)
if err != nil {