* Add failing test for unsane tx in RPC preflight (cherry picked from commite25846e1ad
) * Add From for SanitizeError > TransactionError (cherry picked from commit3f73affb2e
) * Sanitize transactions during RPC preflight test (cherry picked from commit29b3265dc7
) * Harden RPC preflight test inputs (cherry picked from commit14339dec0a
) Co-authored-by: Trent Nelson <trent@solana.com>
This commit is contained in:
@@ -81,6 +81,12 @@ impl std::fmt::Display for TransactionError {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<SanitizeError> for TransactionError {
|
||||
fn from(_: SanitizeError) -> Self {
|
||||
Self::SanitizeFailure
|
||||
}
|
||||
}
|
||||
|
||||
/// An atomic transaction
|
||||
#[derive(Debug, PartialEq, Default, Eq, Clone, Serialize, Deserialize)]
|
||||
pub struct Transaction {
|
||||
|
Reference in New Issue
Block a user