Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chain/txvm
/ runHook
Method
runHook
protocol/txvm/hook.go:11–20 ·
view source on GitHub ↗
(h func(*VM))
Source
from the content-addressed store, hash-verified
9
}
10
11
func
(vm *VM) runHook(h
func
(*VM)) {
12
defer
func
() {
13
// silently ignore panics
14
// TODO(bobg): preserve these errors on the VM object and expose
15
// them to the caller
16
recover()
17
}()
18
19
h(vm)
20
}
Callers
1
runHooks
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected