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

Method setError

core/state/statedb.go:104–108  ·  view source on GitHub ↗

setError remembers the first non-nil error it is called with.

(err error)

Source from the content-addressed store, hash-verified

102
103// setError remembers the first non-nil error it is called with.
104func (self *StateDB) setError(err error) {
105 if self.dbErr == nil {
106 self.dbErr = err
107 }
108}
109
110func (self *StateDB) Error() error {
111 return self.dbErr

Callers 4

GetCodeSizeMethod · 0.95
updateStateObjectMethod · 0.95
deleteStateObjectMethod · 0.95
getStateObjectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected