Commit Graph

29 Commits

Author SHA1 Message Date
mergify[bot] b57b883355
v2.0: Fix BankForks::new_rw_arc memory leak (backport of #1893) (#2066)
* Fix BankForks::new_rw_arc memory leak (#1893)

(cherry picked from commit d441c0f577)

* Fix flaky test test_banking_stage_entries_only_central_scheduler (#2082)

---------

Co-authored-by: Andrei Silviu Dragnea <andreisilviudragnea@gmail.com>
Co-authored-by: Andrew Fitzgerald <apfitzge@gmail.com>
2024-07-17 16:11:40 -07:00
Pankaj Garg 2e54ed280b
SVM: Unify different instances of epoch_schedule in SVM and Bank into one (#1736) 2024-06-17 15:18:34 -07:00
Joe C a108498af1
SVM: Group transaction processing environment (#1650)
* SVM: introduce `TransactionProcessingEnvironment`

* SVM: fold `blockhash` and `lamports_per_signature` into env

* SVM: fold `rent_collector` into env

* SVM: fold `feature_set` into env

* SVM: fold `epoch_stake` into env
2024-06-14 00:02:50 -05:00
Joe C ecf72523ab
SVM: Dissolve `RuntimeConfig` (#1590)
* SVM: add `compute_budget` to processing config

* bank: add `compute_budget` field

* SVM: add `transaction_account_lock_limit` to processing config

* bank: add `transaction_account_lock_limit` field

* bank: drop `runtime_config` getter

* SVM: require `compute_budget` for `prepare_program_cache_for_upcoming_feature_set`

* SVM: drop `runtime_config` from batch processor
2024-06-12 12:04:39 -05:00
Justin Starry e4b0055e52
Validate transaction fee payer earlier (#1529) 2024-06-11 07:49:11 -07:00
Joe C 5263c9d61f
SVM: Return execute timings from API (#1604)
* SVM: add `execute_timings` to API return type

* SVM: message processor: rename `timings` to `execute_timings`

* SVM: remove `timings` mutable input
2024-06-07 15:13:49 -05:00
Joe C 09a99edcc9
SVM: Return error metrics from API (#1589)
* SVM: Add `error_metrics` to API return type

* SVM: account loader: rename `error_counter` to `error_metrics`

* SVM: remove `error_counters` mutable input
2024-06-05 08:34:18 -05:00
Pankaj Garg 6f0afae25e
SVM: move program cache construction inside SVM (#1565)
* SVM: move program cache construction inside SVM

* change slot and epoch for program cache in SVM tests

* move creation of ProgramCache within SVM bounds
2024-06-03 12:11:33 -07:00
Joe C 62eb4cc068
Add Compute Budget Crate (#1121) 2024-06-01 01:38:19 -05:00
Lucas Ste 08c658dc55
Integrate test-vectors bpf-loader in SVM (#1386)
* Integrate test-vectors bpf-loader
2024-05-27 16:58:51 -03:00
Justin Starry a4a009e04d
refactor: checked transaction lps is never none (#1487) 2024-05-26 11:26:53 -04:00
Joe C 529e73dc06
SVM: Group transaction processing configs (#1475)
SVM: group transaction processing configs
2024-05-24 16:30:25 -05:00
Justin Starry e3d8217387
refactor: transaction check result cleanup (#1458) 2024-05-23 15:08:48 -04:00
Justin Starry 5410794308
refactor: move nonce info into `LoadedTransaction` (#1407)
* refactor: move nonce into LoadedTransaction

* clean up tests
2024-05-17 15:59:20 -05:00
Lucas Steuernagel dcc7319432
Add option to build v0 message in SVM (#1238) 2024-05-08 10:53:29 -03:00
Joe C f5db8d2c27
SVM: move `TransactionProcessingCallback` into its own module (#1004) 2024-04-23 20:10:17 +00:00
Pankaj Garg bbe470562b
SVM: Cleanup transaction processor construction (#974) 2024-04-22 14:29:20 -07:00
Alexander Meißner e43338f3d6
Refactor - Rename `LoadedProgram` to `ProgramCacheEntry` (#880)
LoadedProgramOwner => ProgramCacheEntryOwner.
LoadedProgramType => ProgramCacheEntryType.
LoadedProgram => ProgramCacheEntry.
LoadedProgramStats => ProgramCacheStats.
LoadedProgramMatchCriteria => ProgramCacheMatchCriteria.
LoadedProgramsForTxBatch => ProgramCacheForTxBatch.
2024-04-18 21:38:08 +02:00
Lucas Steuernagel 4753a8aefa
Move `add_builtin` to SVM (#547) 2024-04-09 16:55:09 -03:00
Joe C 03ef611f0c
program-runtime: hoist `RuntimeConfig` up to SVM (#630)
program-runtime: hoist `RuntimeConfig` out into SVM
2024-04-07 10:45:57 -05:00
Lucas Steuernagel e70ff38f35
Use loader v3 instead of v2 in the SVM (#454) 2024-03-27 15:47:34 -03:00
Lucas Steuernagel 02918a5af1
Update sysvar API in SVM integration test (#451) 2024-03-27 13:49:43 -03:00
Lucas Steuernagel 9cd90751f0
Add `SanitizedTransaction` builder to SVM (#442)
Add SanitizedTransaction builder
2024-03-27 10:00:04 -03:00
Lucas Steuernagel b884ea8011
Add examples of failing transactions to SVM integration tests (#417)
Add examples of failing transactions
2024-03-25 16:02:58 -03:00
Lucas Steuernagel bcaf7a8f6c
Sysvar example (#399) 2024-03-22 20:26:46 -03:00
Lucas Steuernagel fe16e84806
Include simple transfer example in SVM (#388) 2024-03-22 15:45:59 -03:00
Lucas Steuernagel 4d838d5af9
Add `hello-solana` example source files to SVM folder (#361) 2024-03-21 15:12:32 -03:00
Dmitri Makarov 09ae5872b3
Rename LoadedPrograms to ProgramCache for readability (#339) 2024-03-20 15:26:45 -04:00
Lucas Steuernagel e8526f60aa
SVM integration test (#307) 2024-03-19 13:44:34 -03:00