vm: add invocation tree tracing
This commit is contained in:
parent
eb96f5a5a2
commit
d01f9da8f3
4 changed files with 107 additions and 0 deletions
12
pkg/vm/invocation_tree.go
Normal file
12
pkg/vm/invocation_tree.go
Normal file
|
@ -0,0 +1,12 @@
|
|||
package vm
|
||||
|
||||
import (
|
||||
"github.com/nspcc-dev/neo-go/pkg/util"
|
||||
)
|
||||
|
||||
// InvocationTree represents a tree with script hashes, traversing it
|
||||
// you can see how contracts called each other.
|
||||
type InvocationTree struct {
|
||||
Current util.Uint160
|
||||
Calls []*InvocationTree
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue