Skip to content

Commit

Permalink
Merge pull request #3444 from IPFSMain-Official/fix-GetBestMiningCand…
Browse files Browse the repository at this point in the history
…idate-bug

fix GetBestMiningCandidate bug
  • Loading branch information
magik6k authored Oct 8, 2020
2 parents 26ed6af + a23ab12 commit 2d3b616
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions miner/miner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 2d3b616

Please sign in to comment.