Skip to content

Conversation

@apfitzge
Copy link

Problem

  • Flags are all over the place, we want to add support for more checks

Summary of Changes

  • Update check response type
  • Organize flags better
  • only resolving is currently supported/populated for responses. rest coming in follow-up PR

Fixes #

@codecov-commenter
Copy link

codecov-commenter commented Nov 2, 2025

Codecov Report

❌ Patch coverage is 71.96262% with 30 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.2%. Comparing base (5008373) to head (225d762).
⚠️ Report is 15 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8821   +/-   ##
=======================================
  Coverage    83.2%    83.2%           
=======================================
  Files         864      864           
  Lines      375226   375276   +50     
=======================================
+ Hits       312291   312345   +54     
+ Misses      62935    62931    -4     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@apfitzge apfitzge requested a review from OliverNChalk November 3, 2025 13:42
@apfitzge apfitzge marked this pull request as ready for review November 3, 2025 13:42
Comment on lines 270 to 274
/// Fee-payer balance should be fetched for transactions.
pub const GET_FEE_PAYER_BALANCE: u16 = 1 << 2;

/// Transactions should have ATL pubkeys resolved and returned.
pub const RESOLVE_PUBKEYS: u16 = 1 << 3;

Choose a reason for hiding this comment

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

could call these LOAD_FEE_PAYER and LOAD_ALTS to focus on the cost of the action + standardize naming?

Copy link
Author

Choose a reason for hiding this comment

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

Comment on lines 280 to 282
pub const MESSAGE_PROCESSED: u8 = 0;
/// The message was not processed because the message was invalid.
pub const INVALID_MESSAGE: u8 = 1;

Choose a reason for hiding this comment

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

Could consider dropping message prefix/postfix as all the variants relate to messages.

Copy link
Author

Choose a reason for hiding this comment

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

Comment on lines 449 to 451
/// Flag set if status checks failed due to the transaction being
/// too old.
pub const TOO_OLD: u8 = 1 << 3;

Choose a reason for hiding this comment

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

Technically a randomly generated blockhash would not be too old but just simply "invalid" right? I assume this error is for blockhash failure on TXs that are not using durable nonce?

Copy link
Author

Choose a reason for hiding this comment

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

Yeah, now that i think with error we don't even differentiate between nonce/blockhash. probably best to just call this invalid_lifetime or something like that to encapsulate any error pertaining to the recent_blockhash field whether blockhash, rnadom, or nonce

Choose a reason for hiding this comment

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

ahh yep, i had assumed you had a way of splitting those out. if nonce is getting mixed in would do something like the invalid lifetime name

success: agave_scheduler_bindings::worker_message_types::RESOLVE_SUCCESS,
slot,
Ok(Some((resolved_pubkeys, min_alt_deactivation_slot))) => CheckResponse {
parsing_and_sanitization_flags: 0,

Choose a reason for hiding this comment

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

parsing_and_sanitization_flags: needs to be set to success now right?

@apfitzge apfitzge added this pull request to the merge queue Nov 3, 2025
Merged via the queue into anza-xyz:master with commit ed6382c Nov 3, 2025
44 checks passed
@apfitzge apfitzge deleted the fix_bindings_flags branch November 3, 2025 15:46
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