MCPcopy Create free account
hub / github.com/chain/txvm / log

Method log

protocol/txvm/log.go:24–33  ·  view source on GitHub ↗

charges the creation cost of a tuple containing the given data and logs it

(v ...Data)

Source from the content-addressed store, hash-verified

22
23// charges the creation cost of a tuple containing the given data and logs it
24func (vm *VM) log(v ...Data) Tuple {
25 if vm.Finalized {
26 panic(ErrFinalized)
27 }
28 t := Tuple(v)
29 vm.chargeCreate(t)
30 vm.Log = append(vm.Log, t)
31 vm.runHooks(vm.onLog)
32 return t
33}
34
35func (vm *VM) logNonce(blockID []byte, exp int64) Tuple {
36 return vm.log(NonceTuple(vm.caller, vm.contract.seed, blockID, exp)...)

Callers 8

logNonceMethod · 0.95
logTimeRangeMethod · 0.95
logOutputMethod · 0.95
logInputMethod · 0.95
logFinalizeMethod · 0.95
logRetirementMethod · 0.95
logIssuanceMethod · 0.95
opLogFunction · 0.80

Calls 3

chargeCreateMethod · 0.95
runHooksMethod · 0.95
TupleTypeAlias · 0.85

Tested by

no test coverage detected