From 486742568521467c41694925e27e19f8da8dcd6f Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Wed, 28 Apr 2021 23:35:27 -0700 Subject: [PATCH] fix: use the parent state when listing actors To be consistent with other commands. --- chain/stmgr/stmgr.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/chain/stmgr/stmgr.go b/chain/stmgr/stmgr.go index ad72444e8..afc98a32a 100644 --- a/chain/stmgr/stmgr.go +++ b/chain/stmgr/stmgr.go @@ -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 {