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

Method GetState

core/state/statedb.go:239–245  ·  view source on GitHub ↗
(addr common.Address, bhash common.Hash)

Source from the content-addressed store, hash-verified

237}
238
239func (self *StateDB) GetState(addr common.Address, bhash common.Hash) common.Hash {
240 stateObject := self.getStateObject(addr)
241 if stateObject != nil {
242 return stateObject.GetState(self.db, bhash)
243 }
244 return common.Hash{}
245}
246
247// Database retrieves the low level database supporting the lower level trie ops.
248func (self *StateDB) Database() Database {

Callers

nothing calls this directly

Calls 2

getStateObjectMethod · 0.95
GetStateMethod · 0.65

Tested by

no test coverage detected