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

Function GetRunlimit

protocol/txvm/option.go:69–77  ·  view source on GitHub ↗

GetRunlimit causes the vm to write its ending runlimit to the given pointer on exit.

(runlimit *int64)

Source from the content-addressed store, hash-verified

67// GetRunlimit causes the vm to write its ending runlimit to the given
68// pointer on exit.
69func GetRunlimit(runlimit *int64) Option {
70 return Option{
71 apply: func(vm *VM) {
72 vm.onExit = append(vm.onExit, func(vm *VM) {
73 *runlimit = vm.runlimit
74 })
75 },
76 }
77}
78
79// Resumer can be passed as an option to Validate. It acts like
80// StopAfterFinalize, but additionally writes a function to the

Callers 4

TestOptionsFunction · 0.92
TestRunlimitsFunction · 0.92
measureProgramFunction · 0.92
materializeTxMethod · 0.92

Calls

no outgoing calls

Tested by 3

TestOptionsFunction · 0.74
TestRunlimitsFunction · 0.74
measureProgramFunction · 0.74