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

feat: add --show-outputs flag #269

Merged
merged 5 commits into from
Mar 15, 2024
Merged

feat: add --show-outputs flag #269

merged 5 commits into from
Mar 15, 2024

Conversation

dimazhornyk
Copy link
Contributor

What 💻

Add --show-outputs flag to be able to see the outputs of every call

Why ✋

The option to show the call outputs could be convenient while debugging(especially while debugging system calls, that was my use case for it) because it allows greater transparency.

Evidence 📷

How it looks in terminal:
image

@dimazhornyk dimazhornyk requested a review from a team as a code owner March 13, 2024 18:11
@@ -218,6 +218,9 @@ struct Cli {
#[arg(long, default_value = "none")]
/// Show call debug information
show_calls: ShowCalls,
#[arg[long]]
/// Show call output
show_outputs: bool,
Copy link
Collaborator

@MexicanAce MexicanAce Mar 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome, thank you!!

One thing we've done with the other feature flags, is to have them be configurable via API calls in the config_ namespace( example config_setResolveHashes). So if you forgot to enable Call Output when you start the in-memory node, you don't have to restart the node and potentially lose state.

I think we might want to do the same here, thoughts?

Here are some other config_ API examples: https://github.com/matter-labs/era-test-node/blob/main/SUPPORTED_APIS.md#config_setresolvehashes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense, added the API calls

@dimazhornyk dimazhornyk requested a review from MexicanAce March 14, 2024 10:46
Copy link
Collaborator

@MexicanAce MexicanAce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MexicanAce MexicanAce merged commit b3ed0ff into main Mar 15, 2024
10 checks passed
@MexicanAce MexicanAce deleted the feat-add-show-outputs-flag branch March 15, 2024 20:32
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

Successfully merging this pull request may close these issues.

2 participants