mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
fix: failure in milestones vote on hash
This commit is contained in:
parent
f506350ddb
commit
3e113ed7df
1 changed files with 0 additions and 15 deletions
|
|
@ -83,21 +83,6 @@ func (b *EthAPIBackend) GetVoteOnHash(ctx context.Context, starBlockNr uint64, e
|
||||||
return false, fmt.Errorf("Hash mismatch: localChainHash %s, milestoneHash %s", localEndBlockHash, hash)
|
return false, fmt.Errorf("Hash mismatch: localChainHash %s, milestoneHash %s", localEndBlockHash, hash)
|
||||||
}
|
}
|
||||||
|
|
||||||
ethHandler := (*ethHandler)(b.eth.handler)
|
|
||||||
|
|
||||||
bor, ok := ethHandler.chain.Engine().(*bor.Bor)
|
|
||||||
|
|
||||||
if !ok {
|
|
||||||
return false, fmt.Errorf("Bor not available")
|
|
||||||
}
|
|
||||||
|
|
||||||
err = bor.HeimdallClient.FetchMilestoneID(ctx, milestoneId)
|
|
||||||
|
|
||||||
if err != nil {
|
|
||||||
downloader.UnlockMutex(false, "", endBlockNr, common.Hash{})
|
|
||||||
return false, fmt.Errorf("Milestone ID doesn't exist in Heimdall")
|
|
||||||
}
|
|
||||||
|
|
||||||
downloader.UnlockMutex(true, milestoneId, endBlockNr, localEndBlock.Hash())
|
downloader.UnlockMutex(true, milestoneId, endBlockNr, localEndBlock.Hash())
|
||||||
|
|
||||||
return true, nil
|
return true, nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue