MCPcopy Create free account
hub / github.com/CPChain/chain / empty

Method empty

core/state/state_object.go:92–94  ·  view source on GitHub ↗

empty returns whether the account is considered empty.

()

Source from the content-addressed store, hash-verified

90
91// empty returns whether the account is considered empty.
92func (s *stateObject) empty() bool {
93 return s.data.Nonce == 0 && s.data.Balance.Sign() == 0 && bytes.Equal(s.data.CodeHash, emptyCodeHash)
94}
95
96// Account is the Ethereum consensus representation of accounts.
97// These objects are stored in the main account trie.

Callers 4

AddBalanceMethod · 0.95
EmptyMethod · 0.45
FinaliseMethod · 0.45
CommitMethod · 0.45

Calls 2

EqualMethod · 0.65
SignMethod · 0.45

Tested by

no test coverage detected