-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Use last_valid_block_height in services and client apps #19163
Conversation
@mvines , can you please look at the SendTransactionService changes? I don't think there should be any breakage for anyone, but would appreciate the sanity check. |
75547bc
to
35f27b7
Compare
lgtm
yeah that's probably the right thing to do even though it's a little breaky. It'll only affect program tests so shouldn't be too painful 🤞🏼 |
35f27b7
to
376713f
Compare
376713f
to
de0d4b8
Compare
Codecov Report
@@ Coverage Diff @@
## master #19163 +/- ##
========================================
Coverage 82.9% 82.9%
========================================
Files 450 453 +3
Lines 128336 129053 +717
========================================
+ Hits 106411 107102 +691
- Misses 21925 21951 +26 |
* Add deprecated tag to Bank::get_blockhash_last_valid_slot * Update SendTransactionService to use last_valid_block_height * Update solana-tokens to use last_valid_block_height * Remove dangling file * Update solana program to use last_valid_block_height * Update Banks crates to use last_valid_block_height (cherry picked from commit 5970083) # Conflicts: # cli/src/program.rs
) (#19171) * Use last_valid_block_height in services and client apps (#19163) * Add deprecated tag to Bank::get_blockhash_last_valid_slot * Update SendTransactionService to use last_valid_block_height * Update solana-tokens to use last_valid_block_height * Remove dangling file * Update solana program to use last_valid_block_height * Update Banks crates to use last_valid_block_height (cherry picked from commit 5970083) # Conflicts: # cli/src/program.rs * Fix conflict Co-authored-by: Tyera Eulberg <[email protected]> Co-authored-by: Tyera Eulberg <[email protected]>
Problem
last_valid_slot
is deprecated, and all clusters now support block-height RPCs.Summary of Changes
Update SendTransactionService,
solana program
, andsolana-tokens
CLI to use last_valid_block_height