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

Method touch

core/state/state_object.go:139–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137}
138
139func (c *stateObject) touch() {
140 c.db.journal.append(touchChange{
141 account: &c.address,
142 })
143 if c.address == ripemd {
144 // Explicitly put it in the dirty-cache, which is otherwise generated from
145 // flattened journals.
146 c.db.journal.dirty(c.address)
147 }
148}
149
150func (c *stateObject) getTrie(db Database) Trie {
151 if c.trie == nil {

Callers 1

AddBalanceMethod · 0.95

Calls 2

appendMethod · 0.80
dirtyMethod · 0.80

Tested by

no test coverage detected