fix GetBestMiningCandidate bug

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
刘林欣 2020-09-01 11:44:55 +08:00 committed by Jakub Sztandera
parent e4d2e6e01d
commit a23ab123d7
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA

View File

@ -327,6 +327,7 @@ func (m *Miner) GetBestMiningCandidate(ctx context.Context) (*MiningBase, error)
}
ltsw, err := m.api.ChainTipSetWeight(ctx, m.lastWork.TipSet.Key())
if err != nil {
m.lastWork = nil
return nil, err
}