Empty returns whether the state object is either non-existent or empty according to the EIP161 specification (balance = nonce = code = 0)
(addr common.Address)
| 183 | // Empty returns whether the state object is either non-existent |
| 184 | // or empty according to the EIP161 specification (balance = nonce = code = 0) |
| 185 | func (self *StateDB) Empty(addr common.Address) bool { |
| 186 | so := self.getStateObject(addr) |
| 187 | return so == nil || so.empty() |
| 188 | } |
| 189 | |
| 190 | // Retrieve the balance from the given address or 0 if object not found |
| 191 | func (self *StateDB) GetBalance(addr common.Address) *big.Int { |
nothing calls this directly
no test coverage detected