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

Unconditionally enable SHA-NI extensions #11711

Merged
merged 1 commit into from
Jul 4, 2024
Merged

Unconditionally enable SHA-NI extensions #11711

merged 1 commit into from
Jul 4, 2024

Conversation

nagisa
Copy link
Collaborator

@nagisa nagisa commented Jul 3, 2024

We rely on this extension to accelerate computation of SHA2 hashes quickly. This extension not being present will slow down node beyond what's reasonable and the node will not be able to keep up with others. Enabling this extension unconditionally and having the node fail early on machines where the extension is not available seems like a reasonable option here.

We rely on this extension to accelerate computation of SHA2 hashes
quickly. This extension not being present will slow down node beyond
what's reasonable and the node will not be able to keep up with others.
Enabling this extension unconditionally and having the node fail early
on machines where the extension is not available seems like a reasonable
option here.
@nagisa nagisa requested a review from a team as a code owner July 3, 2024 09:42
@nagisa nagisa requested a review from akhi3030 July 3, 2024 09:42
Copy link
Collaborator

@akhi3030 akhi3030 left a comment

Choose a reason for hiding this comment

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

LGTM. Is there a concern that some validator is running a node without these capabilities and they will not be able to operate their node anymore?

Copy link

codecov bot commented Jul 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.22%. Comparing base (ced534f) to head (7532758).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11711      +/-   ##
==========================================
+ Coverage   70.19%   70.22%   +0.02%     
==========================================
  Files         791      791              
  Lines      161937   161937              
  Branches   161937   161937              
==========================================
+ Hits       113671   113715      +44     
+ Misses      43298    43257      -41     
+ Partials     4968     4965       -3     
Flag Coverage Δ
backward-compatibility 0.23% <ø> (ø)
db-migration 0.23% <ø> (ø)
genesis-check 1.35% <ø> (ø)
integration-tests 37.90% <ø> (-0.07%) ⬇️
linux 69.96% <ø> (-0.01%) ⬇️
linux-nightly 69.80% <ø> (-0.02%) ⬇️
macos 54.55% <ø> (+1.62%) ⬆️
pytests 1.58% <ø> (ø)
sanity-checks 1.38% <ø> (ø)
unittests 64.51% <ø> (+0.04%) ⬆️
upgradability 0.28% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nagisa
Copy link
Collaborator Author

nagisa commented Jul 4, 2024

If they are running without SHA-NI, their node is pretty slow and with stateless this problem would likely get exacerbated to the point where the node cannot keep up with the network at all (if it is still able to right now.)

@nagisa nagisa added this pull request to the merge queue Jul 4, 2024
Merged via the queue into near:master with commit 88af2fa Jul 4, 2024
30 checks passed
@nagisa nagisa deleted the shani branch July 4, 2024 09:01
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