mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
fix localEndBlock nil check
This commit is contained in:
parent
45ce0ee589
commit
c60e97fb73
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