Jeff Washington (jwash)
9615965219
decrease frequency of random shrink of ancient append vec ( #29462 )
2023-01-02 13:29:04 -08:00
Jeff Washington (jwash)
bf93a1e13f
migrate tests to not use AccountStorage::get ( #29464 )
2023-01-02 13:02:09 -08:00
Jeff Washington (jwash)
e99afb4e85
handle ancient overflow case correctly ( #29458 )
2023-01-02 12:39:59 -08:00
Jeff Washington (jwash)
8397f295c0
simplify get_storages_for_slot ( #29463 )
2023-01-02 12:38:48 -08:00
Jeff Washington (jwash)
38d771a823
add test and comments ( #29459 )
2023-01-02 12:38:21 -08:00
Jeff Washington (jwash)
67c7e343a2
test permutations of set_exempt_rent_epoch_max ( #29461 )
2023-01-02 11:59:50 -08:00
Jeff Washington (jwash)
cf1aa4beea
feature: set rent_epoch to Epoch::MAX ( #28690 )
...
* check android builds
* feature: set rent_epoch to Epoch::MAX
* tweaks
* Update runtime/src/rent_collector.rs
Co-authored-by: Brooks Prumo <brooks@prumo.org>
* simplify changes to tests
* back out some test changes
* calculate_rent_result passes through Exempt
* move calc outside loop
* if rent epoch is already max, use 'NoRentCollectionNow'
Co-authored-by: Brooks Prumo <brooks@prumo.org>
2023-01-02 07:51:08 -08:00
Jeff Washington (jwash)
3d72012a31
cleanup 'shrinking_in_progress' ( #29359 )
2023-01-02 07:41:36 -08:00
Jeff Washington (jwash)
6edbb61fa0
add test_shrink_ancient_overflow ( #29363 )
2023-01-02 07:09:53 -08:00
Tyera
1e0d3931fd
Fix "tranaction" typo in code base ( #29347 )
...
Fix typos
2022-12-21 18:02:36 -07:00
Jeff Washington (jwash)
0f7ef085a0
introduce ShrinkInProgress ( #29329 )
...
* introduce ShrinkInProgress
* remove redundant check
* add comments
2022-12-21 09:03:29 -08:00
Jeff Washington (jwash)
4a64f6d421
test_utils::create_test_accounts pre-allocates an append vec first ( #29336 )
...
* test_utils::create_test_accounts pre-allocates an append vec first
* remove comment
2022-12-21 09:02:42 -08:00
Tao Zhu
0244b0144a
Add metrics for min/max priority fee per slot, and counters for fee/non-fee transactions ( #29330 )
...
* Add metrics for min/max priority fee per slot, and counters for fee/non-fee txs
* get fee range of prioritized transactions only
* Update runtime/src/prioritization_fee.rs
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
* Update runtime/src/prioritization_fee.rs
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
* fix format
Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
2022-12-21 16:42:26 +00:00
Tao Zhu
926debd18c
exclude Vote transactions from updating min-fee-cache ( #29341 )
2022-12-20 20:05:46 +00:00
Jeff Washington (jwash)
c3ca5b78b2
remove acctdb.min_num_stores ( #29335 )
2022-12-20 10:39:20 -08:00
Jeff Washington (jwash)
098b86b883
test_minimize_accounts_db uses write cache correctly ( #29333 )
2022-12-20 09:50:56 -08:00
Brooks
053775ad77
Elides unnecessary lifetimes ( #29299 )
2022-12-20 12:44:17 -05:00
Jeff Washington (jwash)
c816157979
shrink avoids reshaping data by using StorableAccounts trait ( #29307 )
2022-12-19 12:29:21 -08:00
Jeff Washington (jwash)
3eca364190
remove metrics from prior to rent_epoch feature activation ( #29322 )
2022-12-19 08:18:02 -08:00
Brennan Watt
86b2e545e1
Prune redundant const SLOT_MS ( #29278 )
...
* Alias redundant const SLOT_MS to DEFAULT_MS_PER_SLOT
* Slate SLOT_MS for deprecation
* Add doc comments
Co-authored-by: Brooks Prumo <brooks@prumo.org>
2022-12-16 08:05:09 -08:00
Jeff Washington (jwash)
19f13a0bea
refactor get_store_for_shrink ( #29284 )
2022-12-15 22:10:39 -08:00
Brooks Prumo
1e0a0e0ced
Cleans up CacheHashData ( #29267 )
2022-12-15 14:16:27 -05:00
Jeff Washington (jwash)
5a687fa818
make AccountStorage::map private ( #29268 )
2022-12-14 20:03:25 -08:00
Jeff Washington (jwash)
3a7b67ea55
refactor unwrap_or_default for type that will soon not have a default ( #29257 )
2022-12-14 15:11:36 -08:00
Jeff Washington (jwash)
49a136a374
move AccountStorage out of accounts_db.rs ( #29261 )
2022-12-14 15:08:39 -08:00
Jeff Washington (jwash)
f9db75768c
Vec<Arc<AccountStorageEntry>> becomes SnapshotStorage ( #29253 )
2022-12-14 12:18:43 -08:00
Jeff Washington (jwash)
fab0ce21a2
remove shrink_candidate_slots_v1 ( #29252 )
2022-12-14 08:57:16 -08:00
Jeff Washington (jwash)
b77bef4ee3
write_version -> write_version_obsolete ( #29176 )
2022-12-14 07:43:40 -08:00
Jeff Washington (jwash)
b8e25282c2
remove rebuild_bank_from_snapshots(caching_enabled) ( #29247 )
...
* fix tests broken by add_root change
* remove rebuild_bank_from_snapshots(caching_enabled)
2022-12-13 16:33:06 -08:00
Jeff Washington (jwash)
f355066456
remove caching_enabled from serde_snapshot ( #29246 )
...
* fix tests broken by add_root change
* remove caching_enabled from serde_snapshot
2022-12-13 16:32:43 -08:00
Jeff Washington (jwash)
62be54a75e
remove process_stale_slot_v1 and other fns ( #29244 )
2022-12-13 16:32:24 -08:00
Jeff Washington (jwash)
4ae12bf5fa
fix tests broken by add_root change ( #29248 )
2022-12-13 14:43:52 -08:00
Jeff Washington (jwash)
250ec3f2a4
improve write_version usage in geyser scan from snapshot ( #29223 )
2022-12-13 14:40:12 -08:00
Alexander Meißner
721496b900
Feature - Program redeployment cooldown ( #29136 )
...
* Registers the feature enable_program_redeployment_cooldown.
* Adds redeployment slot constraint.
* Adds test to assert that closed programs can not be reopened.
* Ensure that program close truncates the account data.
* Adds set_sysvar_for_tests() to SBF program tests.
2022-12-13 22:54:24 +01:00
Jeff Washington (jwash)
3e649d2aa0
remove add_root(caching_enabled) ( #29245 )
2022-12-13 11:26:28 -08:00
Jeff Washington (jwash)
8da82e68fc
remove handle_snapshot_request(caching_enabled) ( #29241 )
2022-12-13 09:31:47 -08:00
Jeff Washington (jwash)
1a0a465416
handle unclean roots explicitly during index generation ( #29230 )
2022-12-13 07:51:33 -08:00
Jeff Washington (jwash)
b779134020
remove process_stale_slot_with_budget ( #29236 )
2022-12-13 07:50:14 -08:00
Jeff Washington (jwash)
c8e7c706df
remove bank_from_streams(caching_enabled) ( #29235 )
2022-12-13 07:49:33 -08:00
Brooks Prumo
bcbf3374fd
Avoids copying hashes when computing merkle root ( #29225 )
2022-12-13 10:20:14 -05:00
Jeff Washington (jwash)
e1c6de9ef4
remove handle_snapshot_requests(caching_enabled) ( #29232 )
2022-12-13 07:19:45 -08:00
Jeff Washington (jwash)
7034f4cbbe
remove new_with_config_for_benches(caching_enabled) ( #29231 )
2022-12-13 07:19:24 -08:00
Jeff Washington (jwash)
5983363b03
remove test_store_scan_consistency(caching_enabled) ( #29233 )
2022-12-13 07:18:55 -08:00
Jeff Washington (jwash)
b95835143e
remove AccountsBackgroundService::new(caching_enabled) ( #29234 )
2022-12-13 07:18:02 -08:00
Jeff Washington (jwash)
3b4c27b727
remove some if accounts_db_caching_enabled { ( #29237 )
2022-12-13 07:17:14 -08:00
Jeff Washington (jwash)
bb0bfc4214
remove bank_from_latest_snapshot_archives(caching_enabled) ( #29238 )
2022-12-13 07:16:24 -08:00
Jeff Washington (jwash)
a57247a78e
handle write_version correctly in geyser api ( #29224 )
2022-12-13 06:42:28 -08:00
Jeff Washington (jwash)
c3001abef7
don't rely on write_version increasing - just assert that it is for now ( #29180 )
2022-12-12 19:24:45 -08:00
Jeff Washington (jwash)
ceeec9d625
remove enable_caching from Bank::new_with_config_for_tests ( #29215 )
2022-12-12 15:33:12 -08:00
Jeff Washington (jwash)
2c2324f4ea
remove caching_enabled from Bank::new_with_paths_for_tests ( #29214 )
2022-12-12 15:30:46 -08:00
Jeff Washington (jwash)
dd4393e46d
remove accounts_caching from Bank::new_with_paths ( #29213 )
2022-12-12 15:18:12 -08:00
Jeff Washington (jwash)
536b879aa7
remove accounts.new_with_config_for_tests.caching_enabled ( #29168 )
2022-12-12 11:31:51 -08:00
Jeff Washington (jwash)
7b1d00ee80
remove dead just_rewrites ( #29188 )
2022-12-12 10:04:16 -08:00
Jeff Washington (jwash)
5e799ad563
remove AccountsDb::new_with_config.caching_enabled ( #29167 )
2022-12-12 08:50:00 -08:00
Jeff Washington (jwash)
db2cc53967
remove skip rewrites from bank ( #29182 )
2022-12-10 09:27:15 -08:00
Brooks Prumo
5f74fb9c87
Removes erroneous duplicate `#[ignore]` ( #29193 )
2022-12-09 20:58:22 -05:00
Jeff Washington (jwash)
f9c4170d34
remove caching_enabled ( #29117 )
...
* warp_from_parents works with write_cache enabled
* remove caching_enabled
2022-12-09 14:31:54 -08:00
Jeff Washington (jwash)
631a98a3b6
warp_from_parents works with write_cache enabled ( #29185 )
2022-12-09 14:28:18 -08:00
Jeff Washington (jwash)
7f1b71a2b0
remove AccountsDb::new_with_config_for_tests.caching_enabled ( #29181 )
2022-12-09 13:54:37 -08:00
Jeff Washington (jwash)
04c10a9382
panic on process_stale_slot_with_budget and remove test ( #29045 )
2022-12-09 13:25:34 -08:00
Jeff Washington (jwash)
a3c95eaa53
remove BankTestConfig.caching_enabled ( #29173 )
2022-12-09 11:52:36 -08:00
Jeff Washington (jwash)
6a90abd056
remove handle_snapshot_requests.caching_enabled ( #29174 )
2022-12-09 10:51:44 -08:00
Jeff Washington (jwash)
45ba5ef6fd
remove bank_from_snapshot_archives caching_enabled ( #29171 )
2022-12-09 10:45:21 -08:00
Jeff Washington (jwash)
99f0113450
remove Accounts::new_with_config_for_tests.caching_enabled ( #29169 )
2022-12-09 10:44:56 -08:00
Jeff Washington (jwash)
ec5098a723
remove bank_test_config_caching_enabled ( #29170 )
2022-12-09 08:28:02 -08:00
apfitzge
151727f633
Storage Rebuilder: better error propagation ( #29150 )
2022-12-09 10:00:12 -06:00
Jeff Washington (jwash)
3d268be800
change RentResult enum values ( #29139 )
...
* test_shrink_candidate_slots uses write cache (#29145 )
* add tests for collect_from_existing_account
2022-12-08 19:48:42 -08:00
Jeff Washington (jwash)
06a806bb9d
introduce aligned_stored_size to flush write cache ( #29147 )
2022-12-08 19:44:23 -08:00
Jeff Washington (jwash)
072070ba80
test_shrink_candidate_slots uses write cache ( #29145 )
2022-12-08 15:13:05 -08:00
Jeff Washington (jwash)
ea19fe9219
support for accounts tests loading accounts with excluded feature ( #29142 )
2022-12-08 11:46:37 -08:00
Brooks Prumo
2d4f17e1c9
Removes AccountsDb::hash_account_with_rent_epoch() ( #29138 )
2022-12-08 13:08:36 -05:00
Jeff Washington (jwash)
2f4731570a
ledger-tool create-snapshot uses write cache ( #29119 )
...
* ledger-tool create-snapshot uses write cache
* ledger tool create snapshot works with write cache
2022-12-08 06:09:52 -08:00
Jeff Washington (jwash)
019f276a91
test_shrink_candidate_slots_cached works with write cache ( #29143 )
2022-12-08 06:08:31 -08:00
Brooks Prumo
9eedc189fd
Uses `storages` for instance of SortedStorages ( #29133 )
2022-12-07 19:27:46 -05:00
Jeff Washington (jwash)
1d95720e5e
migrate some tests to work with write cache ( #29124 )
...
* make specific tests use write cache
* fix a few more tests
2022-12-07 13:46:06 -08:00
Jeff Washington (jwash)
284c41a6db
test_get_snapshot_storages_only_non_empty uses write cache ( #29111 )
2022-12-07 09:19:17 -08:00
Jeff Washington (jwash)
59359c3ab4
test_shrink_collect_simple uses write cache ( #29115 )
2022-12-07 09:18:45 -08:00
Jeff Washington (jwash)
00f5a176a0
test_clean_zero_lamport_and_old_roots uses write cache ( #29113 )
2022-12-07 07:30:58 -08:00
Jeff Washington (jwash)
18a85edf8c
migrate tests to use write cache ( #29108 )
...
* test_store_overhead works with write cache
* test_storage_remove_account_double_remove works with write cache
* test_set_storage_count_and_alive_bytes works with write cache
* test_reuse_append_vec_id works with write cache
2022-12-07 07:03:57 -08:00
Jeff Washington (jwash)
8ce6081744
test_accounts_db_purge1 uses write cache ( #29100 )
2022-12-06 14:34:40 -08:00
Jeff Washington (jwash)
e5e64c8d6e
test_remove_unrooted_slot_snapshot uses write cache ( #29110 )
...
* test_remove_unrooted_slot_snapshot uses write cache
* test_purge_alive_unrooted_slots_after_clean uses with write cache
* test_get_snapshot_storages_with_base_slot uses write cache
* test_get_snapshot_storages_only_roots uses write cache
* test_get_snapshot_storages_only_older_than_or_equal_to_snapshot_slot uses write cache
* test_get_snapshot_storages_exclude_empty uses write cache
* test_clean_old_with_zero_lamport_account uses write cache
* test_clean_old_with_normal_account uses write cache
* test_clean_old_with_both_normal_and_zero_lamport_accounts uses write cache
* test_clean_max_slot_zero_lamport_account uses write cache
* test_calculate_storage_count_and_alive_bytes_2_accounts uses write cache
* test_calculate_storage_count_and_alive_bytes uses write cache
2022-12-06 14:34:18 -08:00
Jeff Washington (jwash)
46e13423fd
migrate tests to work with write cache ( #29106 )
...
* test_accounts_purge_long_chained_after_snapshot_restore
* test_accountsdb_calculate_accounts_hash_from_storages works with write cache
* test_zero_lamport_new_root_not_cleaned works with write cache
* test_wrapping_append_vec_id works with write cache
* test_verify_bank_hash works with write cache
* change tests to use write cache
* use shared db to pass to tests
2022-12-06 14:33:52 -08:00
Jeff Washington (jwash)
c668a58b8e
do_full_clean_refcount uses write cache ( #29112 )
2022-12-06 14:33:28 -08:00
Jeff Washington (jwash)
d3fa93907b
test_clean_zero_lamport_and_dead_slot uses write cache ( #29114 )
2022-12-06 14:33:07 -08:00
behzad nouri
9524c9dbff
patches errors from clippy::uninlined_format_args
...
https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
2022-12-06 19:32:15 +00:00
behzad nouri
9433c06745
patches errors from clippy::unchecked_duration_subtraction
...
https://rust-lang.github.io/rust-clippy/master/index.html#unchecked_duration_subtraction
2022-12-06 19:32:15 +00:00
behzad nouri
401f66c830
patches errors from clippy::seek_to_start_instead_of_rewind
...
https://rust-lang.github.io/rust-clippy/master/index.html#seek_to_start_instead_of_rewind
2022-12-06 19:32:15 +00:00
Jeff Washington (jwash)
ca8372efc1
with_chained_zero_lamport_accounts works with write cache ( #29104 )
2022-12-06 10:56:37 -08:00
Jeff Washington (jwash)
26472a13ea
migrating tests to use write cache ( #29101 )
...
* test_account_update uses write cache
* test_accounts_db_purge_keep_live works with write cache
* enable caching for test_accounts_db_purge_keep_live
2022-12-06 10:25:37 -08:00
Jeff Washington (jwash)
5d0d4a6b95
test_accounts_db_serialize_zero_and_free uses write cache ( #29102 )
2022-12-06 10:25:07 -08:00
Jeff Washington (jwash)
7180345ee1
test_verify_bank_capitalization works with write cache ( #29107 )
2022-12-06 10:24:43 -08:00
Jeff Washington (jwash)
5833e2f85e
test_account_grow uses write cache ( #29099 )
2022-12-06 09:28:24 -08:00
Jeff Washington (jwash)
94a6665995
test_clean_multiple_zero_lamport_decrements_index_ref_count uses write cache ( #29088 )
2022-12-06 08:56:37 -08:00
Jeff Washington (jwash)
fe8b15b43a
test_accountsdb_count_stores uses write cache ( #29086 )
2022-12-06 07:40:51 -08:00
Jeff Washington (jwash)
93cc3b1d3d
test_shrink_stale_slots_skipped only uses non-write cache ( #29081 )
2022-12-06 07:03:30 -08:00
Jeff Washington (jwash)
4de13be926
test_accounts_db_serialize1 uses write cache ( #29085 )
2022-12-06 06:36:28 -08:00
Jeff Washington (jwash)
f88398cbcf
test_shrink_stale_slots_processed uses write cache ( #29082 )
2022-12-06 06:35:49 -08:00
Jeff Washington (jwash)
ed0c9e285b
test_partial_clean supports write cache ( #29091 )
2022-12-06 06:35:02 -08:00
Jeff Washington (jwash)
c106c7e349
test_clean_accounts_with_last_full_snapshot_slot uses write cache ( #29087 )
2022-12-05 20:41:11 -08:00
Jeff Washington (jwash)
6935ff74ce
test_uncleaned_roots_with_account uses write cache ( #29084 )
2022-12-05 20:37:42 -08:00