Skip to content

Commit

Permalink
Removed the check for milestoneID in the GetVoteOnHash() (#9021)
Browse files Browse the repository at this point in the history
Removed the check for milestoneID in the GetVoteOnHash()

maticnetwork/bor#1109
  • Loading branch information
temaniarpit27 authored Jan 12, 2024
1 parent c11e504 commit a592cbf
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions turbo/jsonrpc/bor_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,19 +278,6 @@ func (api *BorImpl) GetVoteOnHash(ctx context.Context, starBlockNr uint64, endBl
return false, fmt.Errorf("hash mismatch: localChainHash %s, milestoneHash %s", localEndBlockHash, hash)
}

bor, err := api.bor()

if err != nil {
return false, errors.New("bor engine not available")
}

err = bor.HeimdallClient.FetchMilestoneID(ctx, milestoneId)

if err != nil {
service.UnlockMutex(false, "", endBlockNr, common.Hash{})
return false, errors.New("milestone ID doesn't exist in Heimdall")
}

service.UnlockMutex(true, milestoneId, endBlockNr, localEndBlock.Hash())

return true, nil
Expand Down

0 comments on commit a592cbf

Please sign in to comment.