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

Struct StructLogger

core/vm/logger.go:111–118  ·  view source on GitHub ↗

StructLogger is an EVM state logger and implements Tracer. StructLogger can capture state based on the given Log configuration and also keeps a track record of modified storage which is used in reporting snapshots of the contract their storage.

Source from the content-addressed store, hash-verified

109// a track record of modified storage which is used in reporting snapshots of the
110// contract their storage.
111type StructLogger struct {
112 cfg LogConfig
113
114 logs []StructLog
115 changedValues map[common.Address]Storage
116 output []byte
117 err error
118}
119
120// NewStructLogger returns a new logger
121func NewStructLogger(cfg *LogConfig) *StructLogger {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected