Tao Zhu

Results 35 issues of Tao Zhu

#### Problem Users need to know the estimated minimum compute-unit price that their transactions should have in order to land in block. In order to do so, a cache of...

### Description When `bank` calculates transaction fee, it's hardcoded to _not_ to use default units per instruction, which is a feature already enabled in mainnet-beta. It _should_ use default units....

feature-gate

#### Problem issue #27991 #### Summary of Changes - increase instruction data cost by 4 times Fixes #27991

#### Problem Vote instruction deserialized size has been reduce by https://github.com/solana-labs/solana/pull/27565, could increase cost of instruction data size accordingly. #### Proposed Solution - reduce instruction byte-per-cu by 4 times (eg....

#### Problem Filtering invalid packets (eg too old, or already processed) at end-of-slot was accidentally removed. It is worth to add it back to avoid forwarding unnecessary (eg, invalid) packets....

#### Problem `banking_stage` takes out `packet_priority_queue` from `filter_and_forward_with_account_limits` for modification at two places (`consume_buffered_packets` and `filter_and_forward_with_account_limits`), then updates `filter_and_forward_with_account_limits` at different point of execution. @carllin [pointed out](https://github.com/solana-labs/solana/pull/26798#discussion_r977120499) this breaks the...

#### Problem Data bytes loaded by transaction have cost in compute-units, defined in [cost model limits](https://github.com/solana-labs/solana/blob/master/runtime/src/block_cost_limits.rs#L29-L30). Amount of data a transaction loads should not exceed its requested compute-unit limit. ####...

feature-gate

remove congestion_multiplier; update test bank fee_structure with genesis_config #### Problem #### Summary of Changes Fixes #

#### Problem `bank.calculate_fee()` takes a parameter with misleading name (`lamports_per_signature`) for testing congestion multiplier to be zero, which has been removed everywhere. That parameter should also be removed. Due to...

#### Problem To reward priority fee differently from transaction fee ([SIMD-0096](https://github.com/solana-foundation/solana-improvement-documents/pull/96)), priority fee should be separated from return of `calculate_fee(...)`. #### Summary of Changes - change `calculate_fee()` return type from...