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

core: avoid extra call to GetNextBlockValidatorsInternal #3500

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

AnnaShaleva
Copy link
Member

It should be sufficient to retrieve next block validators once per updateExtensibleWhitelist call and then reuse this value. nextVals copy intentionally omitted since the only change that smartcontract.CreateDefaultMultiSigRedeemScript performs over the nextVals list is sorting.

It should be sufficient to retrieve next block validators once per
updateExtensibleWhitelist call and then reuse this value. `nextVals`
copy intentionally omitted since the only change that
smartcontract.CreateDefaultMultiSigRedeemScript performs over the
`nextVals` list is sorting.

Signed-off-by: Anna Shaleva <[email protected]>
@AnnaShaleva AnnaShaleva added U4 Nothing urgent enhancement Improving existing functionality S4 Routine I4 No visible changes labels Jul 3, 2024
@AnnaShaleva AnnaShaleva added this to the v0.106.3 milestone Jul 3, 2024
Copy link

codecov bot commented Jul 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.16%. Comparing base (0f2229d) to head (17de1bf).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3500      +/-   ##
==========================================
+ Coverage   86.11%   86.16%   +0.05%     
==========================================
  Files         331      331              
  Lines       38556    38556              
==========================================
+ Hits        33201    33221      +20     
+ Misses       3825     3800      -25     
- Partials     1530     1535       +5     

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

@roman-khimov roman-khimov merged commit f60d5ee into master Jul 16, 2024
21 checks passed
@roman-khimov roman-khimov deleted the optimize-ext-computations branch July 16, 2024 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improving existing functionality I4 No visible changes S4 Routine U4 Nothing urgent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants