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

refactor:process_transactions does not drop validated txs #13136

Closed
wants to merge 3 commits into from

Conversation

akhi3030
Copy link
Collaborator

@akhi3030 akhi3030 commented Mar 14, 2025

Related to the work being tracked in #13140

This PR combined with #13122 allows us to remove an expensive unnecessary cloning of signed transactions in https://github.com/near/nearcore/blob/master/runtime/runtime/src/lib.rs#L1716.

Reviewer: if you do not like the intermediate state of this PR, I am happy to combine it with #13122 but I thought that will be too ugly to review.

@akhi3030 akhi3030 force-pushed the fix-validte-apply-state-update branch from 408cc8a to 6a5dbf2 Compare March 14, 2025 16:24
@akhi3030 akhi3030 changed the title wip: process_transactions does not drop validated txs refactor: process_transactions does not drop validated txs Mar 14, 2025
@akhi3030 akhi3030 marked this pull request as ready for review March 14, 2025 16:37
@akhi3030 akhi3030 requested a review from a team as a code owner March 14, 2025 16:37
@akhi3030 akhi3030 requested a review from saketh-are March 14, 2025 16:37
Copy link

codecov bot commented Mar 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.03%. Comparing base (37efd8d) to head (4c2d4a6).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #13136      +/-   ##
==========================================
+ Coverage   70.01%   70.03%   +0.02%     
==========================================
  Files         865      865              
  Lines      176910   176939      +29     
  Branches   176910   176939      +29     
==========================================
+ Hits       123865   123926      +61     
+ Misses      47861    47840      -21     
+ Partials     5184     5173      -11     
Flag Coverage Δ
backward-compatibility 0.36% <0.00%> (-0.01%) ⬇️
db-migration 0.36% <0.00%> (-0.01%) ⬇️
genesis-check 1.44% <0.00%> (-0.01%) ⬇️
linux 69.87% <100.00%> (-0.01%) ⬇️
linux-nightly 69.58% <100.00%> (+0.01%) ⬆️
pytests 1.74% <0.00%> (-0.01%) ⬇️
sanity-checks 1.55% <0.00%> (-0.01%) ⬇️
unittests 69.87% <100.00%> (+0.02%) ⬆️
upgradability 0.36% <0.00%> (-0.01%) ⬇️

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.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@akhi3030 akhi3030 force-pushed the fix-validte-apply-state-update branch from 6a5dbf2 to 4c2d4a6 Compare March 14, 2025 19:33
@akhi3030 akhi3030 changed the title refactor: process_transactions does not drop validated txs refactor: #13140: process_transactions does not drop validated txs Mar 15, 2025
@akhi3030 akhi3030 changed the title refactor: #13140: process_transactions does not drop validated txs refactor:process_transactions does not drop validated txs Mar 15, 2025
@nagisa
Copy link
Collaborator

nagisa commented Mar 17, 2025

I'm gonna punt on this until @miloserdow's changes land.

@akhi3030
Copy link
Collaborator Author

akhi3030 commented Apr 3, 2025

closing in favour of #13122

@akhi3030 akhi3030 closed this Apr 3, 2025
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