solana/programs
Alexander Meißner 038da82b6f
Feature: Early verification of account modifications in `BorrowedAccount` (#25899)
* Adjusts test cases for stricter requirements.

* Removes account reset in deserialization test.

* Removes verify related test cases.

* Replicates account modification verification logic of PreAccount in BorrowedAccount.

* Adds TransactionContext::account_touched_flags.

* Adds account modification verification to the BPF ABIv0 and ABIv1 deserialization, CPI syscall and program-test.

* Replicates the total sum of all lamports verification of PreAccounts in InstructionContext

* Check that the callers instruction balance is maintained during a call / push.

* Replicates PreAccount statistics in TransactionContext.

* Disable verify() and verify_and_update() if the feature enable_early_verification_of_account_modifications is enabled.

* Moves Option<Rent> of enable_early_verification_of_account_modifications into TransactionContext::new().

* Relaxes AccountDataMeter related test cases.

* Don't touch the account if nothing changes.

* Adds two tests to trigger InstructionError::UnbalancedInstruction.

Co-authored-by: Justin Starry <justin@solana.com>
2022-07-15 09:31:34 +02:00
..
address-lookup-table Bump Version to 1.11.4 (#26578) 2022-07-11 23:30:38 -05:00
address-lookup-table-tests Bump Version to 1.11.4 (#26578) 2022-07-11 23:30:38 -05:00
bpf Feature: Early verification of account modifications in `BorrowedAccount` (#25899) 2022-07-15 09:31:34 +02:00
bpf-loader-tests Bump Version to 1.11.4 (#26578) 2022-07-11 23:30:38 -05:00
bpf_loader Feature: Early verification of account modifications in `BorrowedAccount` (#25899) 2022-07-15 09:31:34 +02:00
compute-budget Bump Version to 1.11.4 (#26578) 2022-07-11 23:30:38 -05:00
config Bump Version to 1.11.4 (#26578) 2022-07-11 23:30:38 -05:00
ed25519-tests Bump Version to 1.11.4 (#26578) 2022-07-11 23:30:38 -05:00
stake Feature: Early verification of account modifications in `BorrowedAccount` (#25899) 2022-07-15 09:31:34 +02:00
vote Feature: Early verification of account modifications in `BorrowedAccount` (#25899) 2022-07-15 09:31:34 +02:00
zk-token-proof Bump Version to 1.11.4 (#26578) 2022-07-11 23:30:38 -05:00