Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lost validator traces #297

Open
rober-m opened this issue Sep 11, 2024 · 13 comments
Open

Lost validator traces #297

rober-m opened this issue Sep 11, 2024 · 13 comments

Comments

@rober-m
Copy link

rober-m commented Sep 11, 2024

When I evaluate (utils/tx/evaluate or utilsTxEvaluate()) a validator compiled with traces, I get the generic:

evaluateTx with blockfrost-js:  {
  type: 'jsonwsp/response',
  version: '1.0',
  servicename: 'ogmios',
  methodname: 'EvaluateTx',
  result: { EvaluationFailure: { ScriptFailures: {} } },
  reflection: { id: '46a98ded-f249-41a1-a322-48533a3cc670' }
}

As you can see, ScriptFailures is an empty object, but Ogmios does return the traces. Why isn't this working?

@vladimirvolek
Copy link
Member

I'll look into this. Could you please provide the transaction CBOR?

@rober-m
Copy link
Author

rober-m commented Sep 11, 2024

Thank you, @vladimirvolek, for the prompt response! I simplified the Tx to avoid clutter.

txHex:

585601010032323232322533300232323232324a26012601400460100026010004600c00260086ea8004526153300349011856616c696461746f722072657475726e65642066616c736500136565734ae7155cf2ba157441

evaluateTx with blockfrost-js:

{
  type: 'jsonwsp/response',
  version: '1.0',
  servicename: 'ogmios',
  methodname: 'EvaluateTx',
  result: { EvaluationFailure: { ScriptFailures: {} } },
  reflection: { id: '327042ca-bc80-4946-af25-fa15c3767147' }
}

And this is the validator's source code (aiken v1.1.0+5879dcf).
Compiled with aiken build --trace-level verbose --filter-traces all and checked the wc to see if traces are actually maintained after compilation

validator burn {
  else(_) {
    trace @"this is a trace message"
    trace @"this is another trace message"
    False
  }
}

@vladimirvolek
Copy link
Member

Okay, I found and fixed the problem. I will let you know when it's deployed to production here.

@rober-m
Copy link
Author

rober-m commented Sep 12, 2024

Awesome, thank you so much!! 🙌

@vladimirvolek
Copy link
Member

Deployed

@rober-m
Copy link
Author

rober-m commented Sep 17, 2024

Hi, @vladimirvolek! It seems it didn't work. 😕 I'm still getting the same response (same Tx, same setup):

evaluateTx with blockfrost-js:  {
  type: 'jsonwsp/response',
  version: '1.0',
  servicename: 'ogmios',
  methodname: 'EvaluateTx',
  result: { EvaluationFailure: { ScriptFailures: {} } },
  reflection: { id: 'd04605d5-6582-47a5-955d-7e58a8f3d774' }
}

@vladimirvolek vladimirvolek reopened this Sep 17, 2024
@vladimirvolek
Copy link
Member

vladimirvolek commented Sep 17, 2024

ohh what.. let me check

@vladimirvolek
Copy link
Member

That's strange. Could you please provide a full example of the payload you're sending? Thanks!

@rober-m
Copy link
Author

rober-m commented Sep 20, 2024

Hi @vladimirvolek! Here's a repo with a full example to reproduce the issue

@rober-m
Copy link
Author

rober-m commented Oct 1, 2024

Hi, @vladimirvolek! Sorry for bothering but is there any news on this? 🙏

@rober-m
Copy link
Author

rober-m commented Oct 26, 2024

Pleeeeeeeeease 🙏
icma

@vladimirvolek
Copy link
Member

Alright, I have a bit more time now. Thanks for your patience with the delay.

@vladimirvolek
Copy link
Member

vladimirvolek commented Oct 30, 2024

@rober-m I need your help! rober-m/reproduce-no-traces-blockfrost#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants