Merge pull request #6143 from filecoin-project/fix/list-actors-parent-state

fix: use the parent state when listing actors
This commit is contained in:
Łukasz Magiera 2021-04-29 18:18:18 +02:00 committed by GitHub
commit 8929f767ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {