Skip to content

Commit

Permalink
feat: Start tracing InvokeActor(cid)
Browse files Browse the repository at this point in the history
  • Loading branch information
fridrik01 committed Aug 21, 2023
1 parent 17dc7fc commit f86a49b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions fvm/src/call_manager/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,10 @@ where
.get_actor(to)?
.ok_or_else(|| syscall_error!(NotFound; "actor does not exist: {}", to))?;

if self.machine.context().tracing {
self.trace(ExecutionEvent::InvokeActor(state.code));
}

// Transfer, if necessary.
if !value.is_zero() {
let t = self.charge_gas(self.price_list().on_value_transfer())?;
Expand Down
2 changes: 1 addition & 1 deletion fvm/src/trace/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ pub enum ExecutionEvent {
},
CallReturn(ExitCode, Option<IpldBlock>),
CallError(SyscallError),
Invoke(Cid),
InvokeActor(Cid),
}

0 comments on commit f86a49b

Please sign in to comment.