-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Limit number of accounts that a transaction can lock #22201
Conversation
b44eeb9
to
81f9a07
Compare
81f9a07
to
9168700
Compare
9168700
to
5cecb4c
Compare
Codecov Report
@@ Coverage Diff @@
## master #22201 +/- ##
===========================================
+ Coverage 70.1% 81.0% +10.9%
===========================================
Files 35 523 +488
Lines 2076 146549 +144473
Branches 296 0 -296
===========================================
+ Hits 1456 118844 +117388
- Misses 519 27705 +27186
+ Partials 101 0 -101 |
Why move the account validation out of the sanitization process? |
In my opinion, sanitization is more for things like bounds checking. Validation of requested account locks for a transaction is something different governed by the runtime and makes more sense to handle at the point of account locking. |
(cherry picked from commit 2b5e00d) # Conflicts: # accountsdb-plugin-postgres/src/postgres_client/postgres_client_transaction.rs # runtime/src/accounts.rs # runtime/src/bank.rs # sdk/src/feature_set.rs # sdk/src/transaction/error.rs # storage-proto/proto/transaction_by_addr.proto # storage-proto/src/convert.rs
#22263) * Limit number of accounts that a transaction can lock (#22201) (cherry picked from commit 2b5e00d) # Conflicts: # accountsdb-plugin-postgres/src/postgres_client/postgres_client_transaction.rs # runtime/src/accounts.rs # runtime/src/bank.rs # sdk/src/feature_set.rs # sdk/src/transaction/error.rs # storage-proto/proto/transaction_by_addr.proto # storage-proto/src/convert.rs * resolve conflicts Co-authored-by: Justin Starry <justin@solana.com>
Problem
No limit to the number of accounts that a transaction can lock
Summary of Changes
SanitizedTransaction::get_account_locks()
Fixes #21748
Feature Gate Issue #24046