Skip to content

Commit

Permalink
fix GetBestMiningCandidate bug
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
  • Loading branch information
刘林欣 authored and Jakub Sztandera committed Oct 8, 2020
1 parent e4d2e6e commit a23ab12
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 a23ab12

Please sign in to comment.