vm: add invocation tree tracing

This commit is contained in:
Roman Khimov 2021-11-19 23:50:12 +03:00
parent eb96f5a5a2
commit d01f9da8f3
4 changed files with 107 additions and 0 deletions

12
pkg/vm/invocation_tree.go Normal file
View 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
}