From 869867e92ea9e5667428dd490f55aedcdb661b1a Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 12 Nov 2020 09:05:28 -0800 Subject: [PATCH] fix compile --- node/impl/full/state.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/node/impl/full/state.go b/node/impl/full/state.go index 5bacd19c9..5e01eaa5b 100644 --- a/node/impl/full/state.go +++ b/node/impl/full/state.go @@ -123,7 +123,12 @@ func (a *StateAPI) StateMinerActiveSectors(ctx context.Context, maddr address.Ad } func (m *StateModule) StateMinerInfo(ctx context.Context, actor address.Address, tsk types.TipSetKey) (miner.MinerInfo, error) { - act, err := m.StateManager.LoadActorTsk(ctx, actor, tsk) + ts, err := m.Chain.GetTipSetFromKey(tsk) + if err != nil { + return miner.MinerInfo{}, xerrors.Errorf("failed to load tipset: %w", err) + } + + act, err := m.StateManager.LoadActor(ctx, actor, ts) if err != nil { return miner.MinerInfo{}, xerrors.Errorf("failed to load miner actor: %w", err) }