Skip to content

v3.0: bump solana-stake-interface from 2.0.0 to 2.0.1 (backport of #7919)#7958

Merged
vadorovsky merged 1 commit intov3.0from
mergify/bp/v3.0/pr-7919
Sep 15, 2025
Merged

v3.0: bump solana-stake-interface from 2.0.0 to 2.0.1 (backport of #7919)#7958
vadorovsky merged 1 commit intov3.0from
mergify/bp/v3.0/pr-7919

Conversation

@mergify
Copy link
Copy Markdown

@mergify mergify Bot commented Sep 9, 2025

Problem

StakeHistory::get in solana-stake-interface was performing a binary search for every requested epoch, which was a visible performance bottleneck.

stake-history-before

Summary of Changes

solana-program/stake#81 fixed that by subtracting the indices. The fix was released in 2.0.1.

slot--cache-after
This is an automatic backport of pull request #7919 done by [Mergify](https://mergify.com).

@mergify mergify Bot added the conflicts label Sep 9, 2025
@mergify mergify Bot requested a review from a team as a code owner September 9, 2025 05:55
@mergify
Copy link
Copy Markdown
Author

mergify Bot commented Sep 9, 2025

Cherry-pick of 8c21276 has failed:

On branch mergify/bp/v3.0/pr-7919
Your branch is up to date with 'origin/v3.0'.

You are currently cherry-picking commit 8c21276b8.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   Cargo.lock
	modified:   cli/Cargo.toml
	modified:   genesis/Cargo.toml
	modified:   programs/sbf/Cargo.lock

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   Cargo.toml
	both modified:   programs/sbf/Cargo.toml

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@willhickey
Copy link
Copy Markdown

@mergify rebase

@mergify
Copy link
Copy Markdown
Author

mergify Bot commented Sep 10, 2025

rebase

☑️ Nothing to do, the required conditions are not met

Details
  • any of:
    • #commits > 1 [📌 rebase requirement]
    • #commits-behind > 0 [📌 rebase requirement]
    • -linear-history [📌 rebase requirement]
  • -closed [📌 rebase requirement]
  • -conflict [📌 rebase requirement]
  • queue-position = -1 [📌 rebase requirement]

`StakeHistory::get` in solana-stake-interface was performing a binary
search for every requested epoch, which was a visible performance
bottleneck.

solana-program/stake#81 fixed that by subtracting the indices. The
fix was released in 2.0.1.

(cherry picked from commit 8c21276)
@vadorovsky vadorovsky force-pushed the mergify/bp/v3.0/pr-7919 branch from 4ad1e7b to 7ae5f7c Compare September 11, 2025 06:49
@steviez steviez requested a review from jstarry September 11, 2025 07:01
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.4%. Comparing base (bec0de9) to head (7ae5f7c).

Additional details and impacted files
@@            Coverage Diff            @@
##             v3.0    #7958     +/-   ##
=========================================
- Coverage    83.4%    83.4%   -0.1%     
=========================================
  Files         810      810             
  Lines      365311   365308      -3     
=========================================
- Hits       304985   304979      -6     
- Misses      60326    60329      +3     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vadorovsky vadorovsky merged commit 4ee0b8b into v3.0 Sep 15, 2025
42 checks passed
@vadorovsky vadorovsky deleted the mergify/bp/v3.0/pr-7919 branch September 15, 2025 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants