eth: fix wrong judgement condition, close XFN-73 (#1686)

This commit is contained in:
Daniel Liu 2025-11-03 15:18:51 +08:00 committed by GitHub
parent 7614a0ad9a
commit 165d0f0838
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
}