mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +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)
|
||||
return nil
|
||||
}
|
||||
if statedb != nil {
|
||||
if statedb == nil {
|
||||
log.Error("fail to get state in GetVotersCap", "checkpoint", checkpoint)
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue