Fuzzer test and fixes (#9853) (#9857)

This commit is contained in:
sakridge
2020-05-02 10:00:51 -07:00
committed by GitHub
parent 3f6befe012
commit bc76b20e6d
3 changed files with 225 additions and 39 deletions

View File

@@ -61,6 +61,14 @@ pub enum TransactionError {
/// Transaction did not pass signature verification
SignatureFailure,
/// This program may not be used for executing instructions
InvalidProgramForExecution,
/// Transaction failed to sanitize accounts offsets correctly
/// implies that account locks are not taken for this TX, and should
/// not be unlocked.
SanitizeFailure,
}
pub type Result<T> = result::Result<T, TransactionError>;