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

Method runHooks

protocol/txvm/hook.go:5–9  ·  view source on GitHub ↗

TODO(bobg): Update the hook mechanism.

(hooks []func(*VM))

Source from the content-addressed store, hash-verified

3// TODO(bobg): Update the hook mechanism.
4
5func (vm *VM) runHooks(hooks []func(*VM)) {
6 for _, h := range hooks {
7 vm.runHook(h)
8 }
9}
10
11func (vm *VM) runHook(h func(*VM)) {
12 defer func() {

Callers 5

ValidateFunction · 0.95
stepMethod · 0.95
logMethod · 0.95
opFinalizeFunction · 0.80
ResumerFunction · 0.80

Calls 1

runHookMethod · 0.95

Tested by

no test coverage detected