set the code to an empty byte for it to move to the top node
This commit is contained in:
parent
dfd0a0994b
commit
be215d3f75
@ -124,16 +124,11 @@ func (h *Handlers) Init(ctx context.Context, sym string, input []byte) (resource
|
|||||||
h.st = h.pe.GetState()
|
h.st = h.pe.GetState()
|
||||||
h.ca = h.pe.GetMemory()
|
h.ca = h.pe.GetMemory()
|
||||||
|
|
||||||
|
|
||||||
fmt.Println("Pre restart state:", h.st)
|
|
||||||
|
|
||||||
if len(input) == 0 {
|
if len(input) == 0 {
|
||||||
h.st.Restart()
|
// move to the top node
|
||||||
h.st = h.pe.GetState()
|
h.st.Code = []byte{}
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("New state:", h.st)
|
|
||||||
|
|
||||||
sessionId, _ := ctx.Value("SessionId").(string)
|
sessionId, _ := ctx.Value("SessionId").(string)
|
||||||
flag_admin_privilege, _ := h.flagManager.GetFlag("flag_admin_privilege")
|
flag_admin_privilege, _ := h.flagManager.GetFlag("flag_admin_privilege")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user