Co-authored-by: Carl Lin <carl@solana.com>
(cherry picked from commit 75e9e321de9c8b6fcd958a7936de74fc63ebfe3f)
Co-authored-by: carllin <wumu727@gmail.com>
* Simpler cap by including sysvars and native programs
* Fix tests
* Add comment
* revert some unrelated code
* Update test_bank_update_sysvar_account for cap.
* Test cap. for add_native_program using new helper
* Improve the cap adjustment with new tests
* Fix typo...
* Adjust test for improved code coverage
* Rename simpler_capitalization => simple_capitalization
* More rename and bonus commenting
(cherry picked from commit de9ac43ebffec502472c690ba519bba852176c86)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
* Add more comments in Stakes::store for its subtlety
* more comment tweak
(cherry picked from commit 7078a6ac615b703ee7fd0c7ff97d238967dcef0c)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
* Don't use stale executor cache (#13966)
(cherry picked from commit 882d0332333384fca1c4ae9adb57f3610de659f7)
* fix conflicts
Co-authored-by: Jack May <jack@solana.com>
Co-authored-by: Carl Lin <carl@solana.com>
(cherry picked from commit 5dceddd21d3c1cf874b003a0c25b1f21f4926614)
Co-authored-by: carllin <wumu727@gmail.com>
* runtime: Factor out `DurableNoncePartial` finishing logic and add tests
(cherry picked from commit 8df2a4bac0954b004556c2fc2e5c6bb7b86d1028)
* accounts: Don't assume fee-payer is the first account
(cherry picked from commit 47af5933caea0e03930e2ed03d18160903a832a7)
* accounts: Replace nonce_rollback unreachable block with descriptive panic
(cherry picked from commit be7760caa1725020290a25023046772c7b5dc733)
* sdk: Check owner when verifying nonce accounts
(cherry picked from commit 274312ebb59ffeac4a8a40f42375c2c6eedb03e7)
* runtime: Replace `HashAgeKind` with `NonceRollbackInfo`
(cherry picked from commit 404fc1570d722709344876dc91799edd576056bf)
* Make `Accounts::is_non_loader_key()` a method on `Message`
(cherry picked from commit 17defbff13fab30210c0b454adb5296f44bd4243)
Co-authored-by: Trent Nelson <trent@solana.com>
Gossip and other places repeatedly de-serialize vote-state stored in
vote accounts. Ideally the first de-serialization should cache the
result.
This commit adds new VoteAccount type which lazily de-serializes
VoteState from Account data and caches the result internally.
Serialize and Deserialize traits are manually implemented to match
existing code. So, despite changes to frozen_abi, this commit should be
backward compatible.
(cherry picked from commit e1793e5a13)
Co-authored-by: behzad nouri <behzadnouri@gmail.com>
* Support ledger-tool for multi-epoch rewards
* nits
* Ensure not to skip some records in csv
(cherry picked from commit 6048342c57)
Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
* runtime: Add `FeeCalculator` resolution method to `HashAgeKind`
* runtime: Plumb fee-collected accounts for failed nonce tx rollback
* runtime: Use fee-collected nonce/fee account for nonced TX error rollback
* runtime: Add test for failed nonced TX accounts rollback
* Fee payer test
* fixup: replace nonce account when it pays the fee
* fixup: nonce fee-payer collect test
* fixup: fixup: clippy/fmt for replace...
* runtime: Test for `HashAgeKind::fee_calculator()`
* Clippy
Co-authored-by: Trent Nelson <trent@solana.com>
(cherry picked from commit b70abdc645)
Co-authored-by: sakridge <sakridge@gmail.com>