solana/runtime/src
Tao Zhu 11153e1f87
refactor cost calculation (#21062)
* - cache calculated transaction cost to allow sharing;
- atomic cost tracking op;
- only lock accounts for transactions eligible for current block;
- moved qos service and stats reporting to its own model;
- add cost_weight default to neutral (as 1), vote has zero weight;

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>

* Update core/src/qos_service.rs

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>

* Update core/src/qos_service.rs

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2021-11-12 01:04:53 -06:00
..
accounts_db Accountsdb plugin write ordering (#20948) 2021-10-25 14:07:56 -07:00
serde_snapshot add filler accounts to bloat validator and predict failure (#20491) 2021-10-11 12:46:27 -05:00
accounts.rs refactor cost calculation (#21062) 2021-11-12 01:04:53 -06:00
accounts_background_service.rs hash calc uses all threads during startup (#20735) 2021-10-15 17:41:23 -05:00
accounts_cache.rs LoadedAccountAccessor::Cached does not store Pubkey (#21030) 2021-11-04 10:28:04 -05:00
accounts_db.rs add rent exempt count to get_total_accounts_stats (#21153) 2021-11-04 11:17:19 -05:00
accounts_hash.rs hashcalc eliminate zeros optimizations (#21209) 2021-11-11 09:44:32 +00:00
accounts_index.rs clean_accounts calls AcctIdx: get_many (#20715) 2021-10-19 15:54:06 -05:00
accounts_index_storage.rs change bg waiting metrics to percent (#20955) 2021-10-26 15:09:17 -05:00
accounts_update_notifier_interface.rs Accountsdb plugin write ordering (#20948) 2021-10-25 14:07:56 -07:00
ancestors.rs
append_vec.rs Upgrade to Rust 1.55.0 2021-10-06 17:48:58 -07:00
bank.rs refactor cost calculation (#21062) 2021-11-12 01:04:53 -06:00
bank_client.rs Update fee api to use blockhash (#21054) 2021-10-29 13:52:59 -07:00
bank_forks.rs Add `set_root` bank drop logging (#21144) 2021-11-06 01:05:36 +00:00
bank_utils.rs Simplify replay vote tracking by using packet metadata (#21112) 2021-11-03 09:02:48 +00:00
block_cost_limits.rs update config by testnet (#20699) 2021-10-15 15:32:46 +00:00
blockhash_queue.rs Update deprecation versions (#20959) 2021-10-26 09:06:41 -07:00
bloom.rs
bucket_map_holder.rs change bg waiting metrics to percent (#20955) 2021-10-26 15:09:17 -05:00
bucket_map_holder_stats.rs percent stats 0-1 -> 0-100 (#21028) 2021-10-27 18:08:27 -05:00
builtins.rs Add compute budget program as a noop (#20992) 2021-10-26 20:08:59 -07:00
cache_hash_data.rs AcctIdx: support 2^24 bins (#20739) 2021-10-18 14:05:16 -05:00
cache_hash_data_stats.rs
commitment.rs
contains.rs
cost_model.rs refactor cost calculation (#21062) 2021-11-12 01:04:53 -06:00
cost_tracker.rs refactor cost calculation (#21062) 2021-11-12 01:04:53 -06:00
epoch_stakes.rs
execute_cost_table.rs fix unstable test (#20645) 2021-10-13 11:43:18 -05:00
genesis_utils.rs
hardened_unpack.rs
in_mem_accounts_index.rs change bg waiting metrics to percent (#20955) 2021-10-26 15:09:17 -05:00
inline_spl_token_v2_0.rs
lib.rs Fix compute budget bump (#21238) 2021-11-11 14:09:28 -08:00
loader_utils.rs
message_processor.rs Fix compute budget bump (#21238) 2021-11-11 14:09:28 -08:00
non_circulating_supply.rs runtime: Add foundation stake pool withdraw authority (#20797) 2021-10-19 21:49:21 +00:00
nonce_keyed_account.rs Replaces MockInvokeContext by ThisInvokeContext in tests (#20881) 2021-11-04 21:47:32 +01:00
pubkey_bins.rs AcctIdx: support 2^24 bins (#20739) 2021-10-18 14:05:16 -05:00
read_only_accounts_cache.rs
rent_collector.rs add rent exempt count to get_total_accounts_stats (#21153) 2021-11-04 11:17:19 -05:00
secondary_index.rs
serde_snapshot.rs Replaces MockInvokeContext by ThisInvokeContext in tests (#20881) 2021-11-04 21:47:32 +01:00
shared_buffer_reader.rs
snapshot_archive_info.rs
snapshot_config.rs Add validator option to change niceness of snapshot packager thread 2021-11-04 17:16:46 -06:00
snapshot_hash.rs SnapshotPackagerService pushes incremental snapshot hashes to CRDS (#20442) 2021-10-08 15:14:56 -05:00
snapshot_package.rs
snapshot_utils.rs Update fee api to use blockhash (#21054) 2021-10-29 13:52:59 -07:00
sorted_storages.rs fix hash calc # storages, # slots (#20832) 2021-10-25 19:37:50 +00:00
stake_weighted_timestamp.rs
stakes.rs Refactor vote state to remove double negative (#21244) 2021-11-12 00:26:43 +00:00
status_cache.rs
system_instruction_processor.rs Replaces MockInvokeContext by ThisInvokeContext in tests (#20881) 2021-11-04 21:47:32 +01:00
transaction_batch.rs Clean up sanitized tx creation for tests (#21006) 2021-10-27 18:09:16 +01:00
vote_account.rs Optimize stakes cache and rewards at epoch boundaries (#20432) 2021-10-06 00:53:26 -04:00
vote_sender_types.rs
waitable_condvar.rs