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:
commit
8929f767ff
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user