aboutsummaryrefslogtreecommitdiffstats
path: root/light/state_object.go
diff options
context:
space:
mode:
Diffstat (limited to 'light/state_object.go')
-rw-r--r--light/state_object.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/light/state_object.go b/light/state_object.go
index 03d4868cd..d023270d5 100644
--- a/light/state_object.go
+++ b/light/state_object.go
@@ -202,7 +202,7 @@ func (self *StateObject) Copy() *StateObject {
// empty returns whether the account is considered empty.
func (self *StateObject) empty() bool {
- return self.nonce == 0 && self.balance.BitLen() == 0 && bytes.Equal(self.codeHash, emptyCodeHash)
+ return self.nonce == 0 && self.balance.Sign() == 0 && bytes.Equal(self.codeHash, emptyCodeHash)
}
// Balance returns the account balance