Drop debug messages
This commit is contained in:
parent
eeca91e43d
commit
1beab85d61
@ -4,7 +4,6 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"fmt"
|
|
||||||
"runtime/debug"
|
"runtime/debug"
|
||||||
|
|
||||||
"github.com/filecoin-project/go-address"
|
"github.com/filecoin-project/go-address"
|
||||||
@ -293,7 +292,6 @@ func (rs *Runtime) Send(to address.Address, method abi.MethodNum, m vmr.CBORMars
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (rt *Runtime) internalSend(to address.Address, method abi.MethodNum, value types.BigInt, params []byte) ([]byte, aerrors.ActorError) {
|
func (rt *Runtime) internalSend(to address.Address, method abi.MethodNum, value types.BigInt, params []byte) ([]byte, aerrors.ActorError) {
|
||||||
fmt.Println("internal send: ", to, method)
|
|
||||||
ctx, span := trace.StartSpan(rt.ctx, "vmc.Send")
|
ctx, span := trace.StartSpan(rt.ctx, "vmc.Send")
|
||||||
defer span.End()
|
defer span.End()
|
||||||
if span.IsRecordingEvents() {
|
if span.IsRecordingEvents() {
|
||||||
@ -321,12 +319,10 @@ func (rt *Runtime) internalSend(to address.Address, method abi.MethodNum, value
|
|||||||
|
|
||||||
ret, err, subrt := rt.vm.send(ctx, msg, rt, 0)
|
ret, err, subrt := rt.vm.send(ctx, msg, rt, 0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("send failed")
|
|
||||||
if err := st.Revert(); err != nil {
|
if err := st.Revert(); err != nil {
|
||||||
return nil, aerrors.Escalate(err, "failed to revert state tree after failed subcall")
|
return nil, aerrors.Escalate(err, "failed to revert state tree after failed subcall")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fmt.Println("after 'send'", ret)
|
|
||||||
|
|
||||||
mr := types.MessageReceipt{
|
mr := types.MessageReceipt{
|
||||||
ExitCode: exitcode.ExitCode(aerrors.RetCode(err)),
|
ExitCode: exitcode.ExitCode(aerrors.RetCode(err)),
|
||||||
@ -345,7 +341,6 @@ func (rt *Runtime) internalSend(to address.Address, method abi.MethodNum, value
|
|||||||
Subcalls: subrt.internalExecutions,
|
Subcalls: subrt.internalExecutions,
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("keeping execution!")
|
|
||||||
rt.internalExecutions = append(rt.internalExecutions, &er)
|
rt.internalExecutions = append(rt.internalExecutions, &er)
|
||||||
return ret, err
|
return ret, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user