mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-17 10:20:44 +00:00
eth: fix wrong judgement condition, close XFN-73 (#1686)
This commit is contained in:
parent
7614a0ad9a
commit
165d0f0838
1 changed files with 1 additions and 1 deletions
|
|
@ -562,7 +562,7 @@ func (b *EthAPIBackend) GetVotersCap(checkpoint *big.Int, masterAddr common.Addr
|
||||||
log.Error("fail to get state in GetVotersCap", "checkpoint", checkpoint, "err", err)
|
log.Error("fail to get state in GetVotersCap", "checkpoint", checkpoint, "err", err)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
if statedb != nil {
|
if statedb == nil {
|
||||||
log.Error("fail to get state in GetVotersCap", "checkpoint", checkpoint)
|
log.Error("fail to get state in GetVotersCap", "checkpoint", checkpoint)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue