Skip to content

Steward Writer Service: Skip null transactions in listen loop#63

Open
aoikurokawa wants to merge 4 commits into
masterfrom
ak/steward
Open

Steward Writer Service: Skip null transactions in listen loop#63
aoikurokawa wants to merge 4 commits into
masterfrom
ak/steward

Conversation

@aoikurokawa

Copy link
Copy Markdown
Collaborator

No description provided.

until: Some(latest_signature),
limit: Some(NUM_TRANSACTIONS),
commitment: Some(CommitmentConfig::confirmed()),
commitment: Some(CommitmentConfig::finalized()),

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

i think better to use same commitment level here

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR hardens the steward writer pipeline against Solana RPC getTransaction responses that deserialize as null, and aligns signature polling to use finalized commitment when listening for new program activity.

Changes:

  • Switch signature polling in the listen loop from confirmed to finalized commitment.
  • Update retry_get_transactions to skip transactions that fail due to a null getTransaction response and log a warning instead of failing the whole batch.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
steward-writer-service/src/main.rs Uses finalized commitment for get_signatures_for_address_with_config in the listen loop.
core/src/rpc_utils.rs Skips getTransaction serde-null failures and adds a helper to detect the null-response error.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread core/src/rpc_utils.rs Outdated
Comment thread core/src/rpc_utils.rs
@aoikurokawa aoikurokawa changed the title Steward: Skip tx is null Steward Writer Service: Skip null transactions in listen loop Jun 12, 2026
@aoikurokawa
aoikurokawa marked this pull request as ready for review June 12, 2026 18:25
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