Merge pull request #3444 from IPFSMain-Official/fix-GetBestMiningCandidate-bug

fix GetBestMiningCandidate bug
This commit is contained in:
Łukasz Magiera 2020-10-08 23:55:19 +02:00 committed by GitHub
commit 2d3b61675b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}