Brennan
8312141f87
Move bank tests to separate file ( #29912 )
2023-02-02 16:32:22 -08:00
Brooks
3249e4a123
Removes {get,set}_bank_hash_info_from_snapshot() ( #30087 )
2023-02-02 16:50:44 -05:00
Jeff Washington (jwash)
ae7803a55e
add test accounts with custom data size ( #30089 )
2023-02-02 10:47:12 -08:00
Jeff Washington (jwash)
890f29be0c
fix alive_bytes test fn ( #30088 )
2023-02-02 10:46:46 -08:00
Jeff Washington (jwash)
d563d37860
combine lookups in StorableAccountsWithHashesAndWriteVersions ( #30061 )
2023-02-02 10:46:17 -08:00
Jeff Washington (jwash)
385a6e01f7
combine some stats into ShrinkStatsSub ( #30034 )
2023-02-02 06:21:36 -08:00
Brooks
a6f43c2e3d
Slot 0 is not as special in set_bank_hash_info_from_snapshot() ( #30071 )
2023-02-02 08:57:11 -05:00
Jeff Washington (jwash)
7ea0a72cc4
total_bytes -> capacity ( #30065 )
2023-02-02 05:46:13 -08:00
Brooks
79e9c9f8b7
Do not populate slot 0 with default accounts delta hash/accounts hash ( #30069 )
2023-02-01 20:43:26 -05:00
Jeff Washington (jwash)
22afdb21ec
rename original_bytes -> capacity ( #30064 )
2023-02-01 16:58:41 -08:00
Xiang Zhu
f107b8b607
Add slot deltas into the bank snapshot directory ( #29409 )
2023-02-01 16:51:32 -08:00
Brooks
33165040bf
Only insert default BankHashStats in Accounts::new_from_parent() ( #30063 )
2023-02-01 17:47:55 -05:00
Tao Zhu
090b990e15
remove congestion multiplier from transaction fee calculation ( #29828 )
2023-02-01 16:26:50 -06:00
Jeff Washington (jwash)
67d3beeb35
remove unnecessary lifetime ( #30019 )
2023-02-01 13:18:46 -08:00
Jeff Washington (jwash)
e11c22a13c
clean up remove_old_stores_shrink stats ( #30018 )
2023-02-01 13:18:07 -08:00
Jeff Washington (jwash)
1c4e84b8ca
impl default version of contains_multiple_slots ( #30055 )
2023-02-01 13:01:01 -08:00
Jeff Washington (jwash)
5769dbf36b
is_cached_store, bool -> Storage enum ( #30057 )
2023-02-01 12:33:27 -08:00
Tao Zhu
0cf93da4b4
remove obsoleted else-if clause ( #30020 )
2023-02-01 14:28:35 -06:00
Jeff Washington (jwash)
3b2c2ebf9e
add StorableAccountsBySlot to move accounts from multiple slots to 1 ( #30023 )
2023-02-01 12:10:12 -08:00
Jeff Washington (jwash)
c8ed54acbd
simplify 2 StorableAccounts impls ( #30054 )
2023-02-01 12:08:28 -08:00
Brooks
d048a1903f
Splits up AccountsDb::bank_hashes ( #30024 )
2023-02-01 14:32:35 -05:00
Jeff Washington (jwash)
27e8af9621
add pub(crate) to shrink functions ( #30052 )
2023-02-01 11:04:51 -08:00
Tao Zhu
7bcb3cef02
report less datapoints to block_min_prioritization_fee ( #30017 )
2023-02-01 11:32:36 -06:00
Jeff Washington (jwash)
5d85a34591
shrink ignores ancient slots ( #30026 )
2023-02-01 07:23:14 -08:00
Jeff Washington (jwash)
28510f4260
update comments on get_ancient_append_vec_capacity ( #30030 )
2023-02-01 07:22:34 -08:00
Jeff Washington (jwash)
3e0494051e
tests adding accounts can mark alive in index ( #30029 )
2023-02-01 07:22:10 -08:00
Jeff Washington (jwash)
d5a7b5715c
add cli arg for choosing ancient append vec format ( #30025 )
2023-02-01 07:21:28 -08:00
Tao Zhu
a5af54669a
Limit loaded data per transaction to a fixed cap ( #29743 )
2023-01-31 22:51:35 -06:00
Richard Patel
179b406acb
runtime: make {Stored,Account}Meta repr(C) ( #30027 )
...
Co-authored-by: Richard Patel <ripatel@jumptrading.com>
2023-01-31 20:13:56 -05:00
K-anon
1e3d6349aa
Add an RPC API that can query the list of Top N secondary index keys and their sizes ( #28887 )
...
Co-authored-by: K-anon <IntokuSatori@users.noreply.github.com>
2023-01-31 13:47:03 -07:00
Richard Patel
1ca78845bb
runtime: add test_type_layout ( #29987 )
...
adds unit test asserting the type layout of structures in append_vec
---------
Co-authored-by: Richard Patel <ripatel@jumptrading.com>
Co-authored-by: brooks <brooks@solana.com>
2023-01-31 11:08:55 -05:00
Jeff Washington (jwash)
4dbde40e10
measure! -> measure_us! ( #29991 )
2023-01-31 07:40:50 -08:00
Brooks
aa72aa8779
Makes AccountsDb::bank_hashes private ( #29990 )
2023-01-30 23:25:19 -05:00
Brooks
005dc96bc5
serde-snapshot uses methods to access AccountsDb::bank_hashes ( #29989 )
2023-01-30 21:32:04 -05:00
Jeff Washington (jwash)
ebf3ad5604
remove unnecessary lifetimes ( #29988 )
2023-01-30 14:11:10 -08:00
Jeff Washington (jwash)
8a56a856d8
refactor shrink_collect ( #29982 )
...
* refactor shrink_collect
* Update runtime/src/accounts_db.rs
Co-authored-by: Andrew Fitzgerald <apfitzge@gmail.com>
---------
Co-authored-by: Andrew Fitzgerald <apfitzge@gmail.com>
2023-01-30 13:10:39 -08:00
Jeff Washington (jwash)
3e5ab0437f
remove create_ancient_append_vec ( #29984 )
2023-01-30 13:07:15 -08:00
Jeff Washington (jwash)
ea6dac0556
refactor update_shrink_stats ( #29983 )
2023-01-30 11:11:13 -08:00
Xiang Zhu
856598969c
Account path add run parent with old path cleanup ( #29942 )
...
* Add run parent directory for accounts files
* fix test test_concurrent_snapshot_packaging
* review comments. renamed the path setup function
* Addressed most of the review comments
* remove explict type def for map result
* handle create_accounts_run_and_snapshot_dirs error with expect
* update with more review comments
* minor fixes from review comments
* simplify account_filename option assignment
* handle error from create_accounts_run_and_snapshot_dirs
* use then instead of then_some for lazy evaluation
* Clean up files in the old account_path before trasitioning to the new run path
* try_exist and accounts_dir removing extra
* sync rmdir, is_dir check
* handle the account_path not deletable case
2023-01-30 10:26:43 -08:00
Tao Zhu
7ef720b76d
refactor: remove obsoleted function ( #29964 )
...
refactor: remove obsolated function
2023-01-30 09:16:49 -06:00
Alexander Meißner
ac7d0ff633
Feature - Disable builtin loader ownership chains ( #29959 )
...
* Adds feature disable_builtin_loader_ownership_chains.
* Removes test_load_accounts_max_call_depth().
2023-01-29 19:27:49 +01:00
Alexander Meißner
aa2e3487ba
Refactor - Simplify program accounts in transaction loading ( #29728 )
...
* Refactors the "!validated_fee_payer" case from an "else" branch to an early "return".
* Moves the early return upward.
* Removes empty entries.
* Adds account_found_and_dep_index.
* cargo fmt.
* Replaces call site of load_executable_accounts().
* Adjusts number of total loaded accounts in test_load_accounts_multiple_loaders().
* Removes test_accounts_account_not_found().
* Removes load_executable_accounts().
* Refactor back to built-in loader ownership chain loop.
2023-01-27 21:24:21 +01:00
Jeff Washington (jwash)
5e35823b66
add test_stake_account_consistency_with_rent_epoch_max_feature ( #29915 )
...
* add test_stake_account_consistency_with_rent_epoch_max_feature
* create_stake_account takes id
* use test_case
* reformat panic message
2023-01-27 11:50:33 -08:00
Tao Zhu
6f4fe37bd2
add cost to additional built-in programs ( #29795 )
...
* add cost to additional built-in programs
* update a test with compute-budget cost
2023-01-27 13:47:41 -06:00
Illia Bobyr
8fafbb0a06
doc: Fix documentation warnings and add some links ( #29887 )
2023-01-25 23:15:58 -08:00
Brooks
867d2581a6
Moves impl of bank_hash_info_at() into hash_internal_state() ( #29913 )
2023-01-25 22:24:51 -05:00
Brooks
dde4b5d1ef
Adds AccountsDb::get_bank_hash_info() ( #29908 )
2023-01-25 17:01:01 -05:00
Brooks
d76c598691
Snapshot serde test uses calculate_accounts_delta_hash() ( #29905 )
2023-01-25 16:26:15 -05:00
Xiang Zhu
4ebcacb4a3
Revert "Add run parent directory for accounts files ( #29794 )" ( #29899 )
...
This PR is causing OOM on master. Reverting it for now.
This reverts commit 74f89d1494
.
2023-01-25 10:03:01 -08:00
Xiang Zhu
74f89d1494
Add run parent directory for accounts files ( #29794 )
...
* Add run parent directory for accounts files
* fix test test_concurrent_snapshot_packaging
* review comments. renamed the path setup function
* Addressed most of the review comments
* remove explict type def for map result
* handle create_accounts_run_and_snapshot_dirs error with expect
* update with more review comments
* minor fixes from review comments
* simplify account_filename option assignment
* handle error from create_accounts_run_and_snapshot_dirs
* use then instead of then_some for lazy evaluation
2023-01-24 16:44:35 -08:00