Tao Zhu
cbcd3ef27e
Not allow transactions request zero CU to update prioritization fee cache ( #30507 )
...
* filter out transaction requests zero cu from updating prioritization fee cache
* updated comment
2023-02-24 23:50:02 -06:00
Tao Zhu
9ec5e9b866
refactor to remove additional is_simple_vote check ( #30521 )
2023-02-24 23:49:04 -06:00
Brooks
64c7b401cd
BankIncrementalSnapshotPersistence uses strong accounts hash types ( #30502 )
2023-02-24 18:15:23 -05:00
Jeff Washington (jwash)
45a34f637b
move BankCreationFreezingProgress to its own file ( #30510 )
2023-02-24 14:05:39 -08:00
Brooks
ffe2d309b2
Adds serde_snapshot::types module ( #30501 )
2023-02-24 15:27:12 -05:00
Jeff Washington (jwash)
31573beb2d
use slot instead of store_id in clean ( #30472 )
...
* use slot instead of store_id in clean
* update debug
2023-02-24 12:01:16 -08:00
Jeff Washington (jwash)
9080b36192
use local for store_id in write_accounts_to_storage ( #30500 )
2023-02-24 11:50:57 -08:00
Xiang Zhu
510be7bdb5
Add checks when constructing a BankSnapshotInfo from a directory ( #30373 )
...
* Read snapshot directories and find the highest
* format check
* Fix test_get_bank_snapshots
* fix test_bank_fields_from_snapshot
* review changes, is_file etc
* removed incremental snapshot
* SnapshotNewFromDirError
* nit and comments issues
* NewFromDir(#[from] SnapshotNewFromDirError)
* change fill to create
* replace unwrap with map_err and ok_or_else
* Remove BankForks, fix the bank loop
2023-02-24 11:50:29 -08:00
Brooks
e0abad43c3
Removes checks for bank_hash_stats in test ( #30480 )
2023-02-24 14:35:36 -05:00
Jeff Washington (jwash)
efc5cc4a48
break apart AccountInfo ( #30505 )
2023-02-24 11:35:27 -08:00
Jeff Washington (jwash)
7c086ca42d
add DiskIndexValue trait for disk index ( #30503 )
2023-02-24 11:02:06 -08:00
K-anon
3ed63de656
Revert "Revert "Add test for executor cache runtime feature upgrades.… ( #30428 )
2023-02-24 10:04:51 -07:00
Tao Zhu
66ea750182
add compute budget instruction to set loaded accounts data size limit ( #30377 )
...
* add compute budget instruction to set accounts data size limit
* changes names to explicitly for loaded accounts data size
2023-02-24 09:27:49 -06:00
Jeff Washington (jwash)
0a75be399b
dirty_stores key is slot and not AppendVecId ( #30474 )
2023-02-24 07:17:09 -08:00
Jeff Washington (jwash)
005dde70e2
minor cleanup ( #30477 )
2023-02-23 15:10:09 -08:00
Jeff Washington (jwash)
2441a06e78
drop default from PhantomData::default() ( #30476 )
2023-02-23 14:59:08 -08:00
Brooks
b7d31e134c
Refactors Accounts::new_from_parent() ( #30475 )
2023-02-23 16:50:51 -05:00
Jeff Washington (jwash)
2c7d9f988e
use slot with store id in some clean paths ( #30473 )
2023-02-23 13:50:25 -08:00
Jeff Washington (jwash)
9ddb89226c
remove_dead_accounts uses slot instead of AppendVecId ( #30471 )
2023-02-23 13:20:33 -08:00
Jeff Washington (jwash)
e39626ab14
add second type to accounts index for disk ( #30446 )
2023-02-23 13:05:06 -08:00
Jeff Washington (jwash)
6df160bedd
get stored_size from StoredAccountMeta ( #30456 )
2023-02-23 12:33:35 -08:00
Jeff Washington (jwash)
a2b0b8e346
rearrange how shrink_in_progress_map is populated ( #30466 )
2023-02-23 11:35:38 -08:00
Xiang Zhu
d6da019ccf
Clean up old account snapshot directories to avoid the file existing hardlink error ( #30426 )
...
* Fix the hardlink failure
* minor comment cleanup
* use ? and slot_str
* &slot_str
* Add InvalidAccountPath
2023-02-23 10:53:12 -08:00
Jeff Washington (jwash)
47d95a431c
remove magic numbers in test ( #30465 )
2023-02-23 09:23:14 -08:00
Jeff Washington (jwash)
c032dc2754
add bank progress stats ( #30405 )
...
* add bank progress stats
* handle more bank creation code paths
* use wrapping sub
2023-02-23 06:29:02 -08:00
Jeff Washington (jwash)
9ecc4462f8
cleanup test type ( #30453 )
2023-02-23 06:26:55 -08:00
Pankaj Garg
0e13dcca00
Replenish executor cache eagerly during transaction processing ( #30425 )
2023-02-23 05:13:39 -08:00
Yueh-Hsuan Chiang
ac7e7aa8f0
Move account-meta structs from append_vec.rs to account_meta.rs ( #30443 )
...
#### Problem
As we start supporting new storage formats, those account-meta
structs will be shared by different storage formats and thus need
a new home.
#### Summary of Changes
This PR creates meta.rs under account_storage and moves all the account-meta
structs out from append_vec.rs.
2023-02-22 16:10:34 -08:00
Yueh-Hsuan Chiang
833cb75c20
Fix the dependency of accounts_file.rs ( #30423 )
...
Replace the use of append_vec::* in accounts_file.rs
2023-02-22 11:13:58 -08:00
Jeff Washington (jwash)
a78f763896
simplify remove_if_slot_list_empty_value ( #30436 )
2023-02-22 10:46:12 -08:00
Jeff Washington (jwash)
6a66d4631c
remove 'stored_size' from account info ( #30407 )
2023-02-22 07:04:21 -08:00
Jeff Washington (jwash)
db8764f98d
hold items with ref count != 1 in memory ( #30414 )
...
* hold items with ref count != 1 in memory
* fix tests
2023-02-22 06:57:59 -08:00
Brooks
1689586213
Uses a channel for AHV -> SPS ( #30406 )
2023-02-22 03:36:29 +00:00
K-anon
2e4b8ea8bb
Revert "Add test for executor cache runtime feature upgrades. ( #30382 )" ( #30424 )
...
This reverts commit c5a24e11ba
.
Co-authored-by: K-anon <IntokuSatori@users.noreply.github.com>
2023-02-21 15:47:39 -07:00
Pankaj Garg
b1f5b0d790
Find and load missing programs in LoadedPrograms cache ( #30275 )
...
* Find and load missing programs in LoadedPrograms cache
- filter program accounts in a transaction batch
- filter the accounts that are missing in LoadedPrograms cache
- load the programs before processing the transactions
- unit tests
* address review comments
* fix clippy
* address review comments
* fix test
* fix more tests
2023-02-21 12:53:35 -08:00
Brooks
35328ca63d
Makes AccountsHash an enum ( #30416 )
2023-02-21 15:20:51 -05:00
K-anon
c5a24e11ba
Add test for executor cache runtime feature upgrades. ( #30382 )
...
Co-authored-by: K-anon <IntokuSatori@users.noreply.github.com>
2023-02-21 12:25:29 -07:00
Jeff Washington (jwash)
568a4b1ca0
move AccountInfo bits from size to offset ( #30408 )
...
* move AccountInfo bits from size to offset
* feedback
2023-02-21 10:08:37 -08:00
HaoranYi
22f6dfd98e
typo ( #30393 )
2023-02-21 09:59:45 -06:00
Brooks
bcc4bc80c9
Removes unnecessary derives from Accounts{Delta}Hash ( #30392 )
2023-02-20 16:00:53 -05:00
Jeff Washington (jwash)
46b42e1888
add hash calc scan_chunks metric ( #30333 )
2023-02-20 12:55:48 -08:00
Brooks
ec288ded9b
Serde snapshot uses own types ( #30391 )
2023-02-20 12:25:15 -05:00
Brooks
a8e07c41fe
Adds `is_incremental_accounts_hash_feature_enabled` to `AccountsPackage` ( #30368 )
2023-02-20 12:21:38 -05:00
Brooks
ad6a3abd8b
Uses set_accounts_{delta,}_hash_for_tests() in serde tests ( #30390 )
2023-02-17 16:00:25 -05:00
Brooks
f91e63dfe9
Upgrades Rust to 1.67.1 ( #29947 )
2023-02-17 14:08:27 -05:00
Pankaj Garg
3a4ba72daf
Remove executors trait and replace with LoadedProgram ( #30348 )
...
* Remove executors trait and replace with LoadedProgram
* fill in deployment slot
* address review comments
* fix clippy warnings
* address review comments
* fix failures caught by sbf tests
2023-02-17 12:47:45 +01:00
Pankaj Garg
6c58033df5
API to enumerate executable program accounts in tx batch ( #30371 )
2023-02-16 13:29:38 -08:00
Brooks
febaf36e6d
Apply clippy fixes for future rust upgrade ( #30363 )
2023-02-16 16:12:51 +00:00
Xiang Zhu
fa22389b22
Add version and state_complete flag into bank snapshot ( #30099 )
...
* Add version and state_complate flag into bank snapshot
* Add test_get_highest_full_snapshot_slot_and_path
* fix build checks
* fix slot_deltas panic in test_get_highest_full_snapshot_slot_and_path
* make bank rooted for test_get_highest_full_snapshot_slot_and_path
* fix bank scope problem in test_get_highest_full_snapshot_slot_and_path
* minor cleanup
* misc review issues
* remove unneeded error defs and functions
* Fix state_complete macro naming
* fix snapshot_version
2023-02-15 22:38:40 -08:00
Yueh-Hsuan Chiang
ce4251be99
Fix the return type of AccountsFile::account_matches_owners() ( #30354 )
...
Update AccountsFile::account_matches_owners() to return the matched index
2023-02-16 03:34:36 +00:00