Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tudor-malene committed Apr 5, 2024
1 parent 66a1f36 commit 2fce97d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions go/enclave/rpc_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,20 @@ func (s *RPCServer) Status(context.Context, *generated.StatusRequest) (*generate
if status.L2Head != nil {
l2Head = status.L2Head.Bytes()
}
s.logger.Debug("rpc status after 1")
s.logger.Debug("rpc status after 1", "l1head", status.L1Head)
return &generated.StatusResponse{
s.logger.Debug("rpc status after 2", "StatusCode", status.StatusCode)
s.logger.Debug("rpc status after 3", "l2Head", l2Head)
s.logger.Debug("rpc status after 4", "sysError", sysError)
sr := &generated.StatusResponse{
StatusCode: int32(status.StatusCode),
L1Head: status.L1Head.Bytes(),
L2Head: l2Head,
SystemError: toRPCError(sysError),
}, nil
}

s.logger.Debug(fmt.Sprintf("rpc statusresponse: %v", sr))

return sr, nil
}

func (s *RPCServer) Attestation(context.Context, *generated.AttestationRequest) (*generated.AttestationResponse, error) {
Expand Down

0 comments on commit 2fce97d

Please sign in to comment.