solana-with-rpc-optimizations/runtime
Joe C 25460f76e7
Bank: Add function to replace empty account with upgradeable program on feature activation (#32783)
* replace program account

* modify for all cases

* remove non-data swap

* address tests & conditional feedback

* get the rent involved

* mix in owner & executable

* feature-related cases

* stripped back to feature-specific case only

* added feature

* address initial feedback

* added more lamport checks

* condense tests

* using test_case

* add fail cases to tests

* more cleanup

* add verifiably built program

* update program account state

* cleaned up serializing logic

* use full word capitalization

* rename old & new to dst & src

* swap src and dst in parameters

* add warnings and errors

* rename feature to programify

* test suite description clarity

* remove strings from datapoints

* spell out source and destination

* more verbose comments in account replace functions

* move lamport calculation

* swap lamport check for state check

* move replace functions to helper module

* make replace_account methods fallible

* refactor error handling

* add test for source program state
2023-10-04 19:54:59 +02:00
..
benches Moves accounts-db benches to accounts-db crate (#33306) 2023-09-19 13:09:42 -04:00
src Bank: Add function to replace empty account with upgradeable program on feature activation (#32783) 2023-10-04 19:54:59 +02:00
store-tool Move accounts-db code to its own crate (#32766) 2023-08-09 13:03:36 -07:00
tests Make active stake consistent in split (#33295) 2023-09-20 06:00:51 +00:00
.gitignore
Cargo.toml Split vote related code from runtime to its own crate (#32882) 2023-09-19 10:46:37 -07:00
build.rs