Removed the check for milestoneID in the GetVoteOnHash() (#9021)

Removed the check for milestoneID in the GetVoteOnHash()

https://github.com/maticnetwork/bor/pull/1109
This commit is contained in:
Arpit Temani 2024-01-12 21:20:53 +05:30 committed by GitHub
parent c11e5047fb
commit a592cbf163
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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