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

clients/stellarcore horizon: Obtain and expose diagnostic events in transaction endpoint #5148

Merged
merged 3 commits into from
Jan 2, 2024

Conversation

2opremio
Copy link
Contributor

@2opremio 2opremio commented Dec 22, 2023

What

When submitting failing soroban transactions, Core may return a new "diagnostic_events" field with which to debug what happened.

This PR exposes the new field in the Core client. Also, it adds a new extra "diagnostic_events" field in Horizon's transaction submission endpoint.

Why

Improve debugability of failing soroban transactions. Also, it paves to way for exposing diagnostic events in soroban-RPC's sendTransaction endpoint.

Known limitations

Core currently only supports this on nodes with diagnostic events explicitly enabled. @dmkozh is working on enabling the "diagnostic_events" field unconditionally.

Copy link
Contributor

@sreuland sreuland left a comment

Choose a reason for hiding this comment

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

nice addition!

protocols/stellarcore/tx_response.go Outdated Show resolved Hide resolved
protocols/stellarcore/tx_response_test.go Outdated Show resolved Hide resolved
@2opremio 2opremio merged commit 51c1b15 into stellar:master Jan 2, 2024
28 checks passed
@2opremio 2opremio deleted the diag-events-core branch January 2, 2024 16:12
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.

3 participants