solana/runtime
Alexander Meißner 97c2732d02
Refactor: Cleanup InvokeContext (#20785)
* Move blockhash and fee_calculator in ThisInvokeContext instead of using a reference.

* Moves tx_wide_compute_cap into InvokeContext::push().

* Adds ThisInvokeContext::new_mock() constructor.

* Adds missing loader account in uses of MockInvokeContext.

* Use keyed_account_at_index() when accessing keyed_accounts.

* Makes sysvar interface consistent between ThisInvokeContext and MockInvokeContext,
in order to add InvokeContext::get_sysvars().

* Adds InvokeContext::set_blockhash() and InvokeContext ::set_fee_calculator().

* Adds new_mock_with_features.

* Makes ancestors optional in ThisInvokeContext.

* Adds prepare_mock_invoke_context() and mock_process_instruction().
2021-10-21 20:57:42 +02:00
..
benches Refactor: Remove program_id from process_instruction() (#20540) 2021-10-10 22:29:18 +02:00
src Refactor: Cleanup InvokeContext (#20785) 2021-10-21 20:57:42 +02:00
store-tool Bump version to 1.9.0 2021-10-06 17:57:41 -07:00
tests Remove support for dynamically loaded native programs (#20444) 2021-10-06 14:53:23 -07:00
.gitignore
Cargo.toml - move cost tracker into bank, so each bank has its own cost tracker; (#20527) 2021-10-12 08:51:33 -05:00
build.rs