mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
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:
parent
c11e5047fb
commit
a592cbf163
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user