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

Update soroban p21 version to 21.2.2, taking binary-search change. #4519

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

graydon
Copy link
Contributor

@graydon graydon commented Oct 24, 2024

This is a critical update. Stellar-core packages from before this update, if built with rust 1.82, will diverge from the network. They must not be deployed in production validators.

Rust 1.82 changed the implementation of binary search in its standard library in a way that soroban observes. This change modifies soroban to use a local copy of binary search that is the same as the one in rust 1.81, so that soroban is no longer sensitive to the difference between 1.81 and 1.82.

Existing SDF-built release packages of stellar-core were built with rust 1.81, but it is possible that other builds of stellar-core built after the release of rust 1.82 might exist in the field. These must all update to this change, or later, to avoid diverging from peers built with rust 1.81.

This is a critical update. Stellar-core packages from before this
update, if built with rust 1.82, will diverge from the network. They
must not be deployed in production validators.

Rust 1.82 changed the implementation of binary search in its standard
library in a way that soroban observes. This change modifies soroban to
use a local copy of binary search that is the same as the one in rust
1.81, so that soroban is no longer sensitive to the difference between
1.81 and 1.82.

Existing SDF-built release packages of stellar-core were built with rust
1.81, but it is possible that other builds of stellar-core built after
the release of rust 1.82 might exist in the field. These must all update
to this change, or later, to avoid diverging from peers built with rust
1.81.
@graydon graydon added this pull request to the merge queue Oct 24, 2024
Merged via the queue into master with commit ccb1719 Oct 24, 2024
13 checks passed
@graydon graydon deleted the update-soroban-p21-to-21.2.2 branch October 24, 2024 23:58
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