solana/programs/stake/src
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
..
config.rs Remove `KeyedAccount` in builtin program "stake" (#24210) 2022-04-10 09:55:37 +02:00
lib.rs Raise minimum stake delegation to 1 SOL (#24603) 2022-05-07 19:01:05 -04:00
stake_instruction.rs Cleanup stake_instruction tests (#26393) 2022-07-06 16:15:01 -05:00
stake_state.rs Feature: Early verification of account modifications in `BorrowedAccount` (#25899) 2022-07-15 09:31:34 +02:00