mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
Merge pull request #1562 from maticnetwork/lmartins/fix_v2.1.0-beta
Fix localEndBlock nil check
This commit is contained in:
commit
7fc0447dfd
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ func (b *EthAPIBackend) GetVoteOnHash(ctx context.Context, starBlockNr uint64, e
|
|||
|
||||
// Check if end block exist
|
||||
localEndBlock, err := b.BlockByNumber(ctx, rpc.BlockNumber(endBlockNr))
|
||||
if err != nil {
|
||||
if err != nil || localEndBlock == nil {
|
||||
return false, errEndBlock
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue