Skip to content

Commit

Permalink
Revert some unused code changes...
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Jun 10, 2024
1 parent aae7078 commit d4c4004
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ struct RentMetrics {
pub type BankStatusCache = StatusCache<Result<()>>;
#[cfg_attr(
feature = "frozen-abi",
frozen_abi(digest = "CyD3t1HF7U63HhZawzETFFfo8XydftV8X7rnUTKtiN1G")
frozen_abi(digest = "9Pf3NTGr1AEzB4nKaVBY24uNwoQR4aJi8vc96W6kGvNk")
)]
pub type BankSlotDelta = SlotDelta<Result<()>>;

Expand Down
6 changes: 0 additions & 6 deletions sdk/src/transaction/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,6 @@ pub enum TransactionError {
/// Program cache hit max limit.
#[error("Program cache hit max limit")]
ProgramCacheHitMaxLimit,

/// Transaction processing is cancelled due to a panic or already aborted scheduler.
#[error(
"Transaction processing hasn't been completed due to a cancellation triggered internally"
)]
ProcessingCancelled,
}

impl From<SanitizeError> for TransactionError {
Expand Down
1 change: 0 additions & 1 deletion storage-proto/proto/transaction_by_addr.proto
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ enum TransactionErrorType {
PROGRAM_EXECUTION_TEMPORARILY_RESTRICTED = 35;
UNBALANCED_TRANSACTION = 36;
PROGRAM_CACHE_HIT_MAX_LIMIT = 37;
PROCESSING_CANCELLED = 38;
}

message InstructionError {
Expand Down
4 changes: 0 additions & 4 deletions storage-proto/src/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,6 @@ impl TryFrom<tx_by_addr::TransactionError> for TransactionError {
34 => TransactionError::ResanitizationNeeded,
36 => TransactionError::UnbalancedTransaction,
37 => TransactionError::ProgramCacheHitMaxLimit,
38 => TransactionError::ProcessingCancelled,
_ => return Err("Invalid TransactionError"),
})
}
Expand Down Expand Up @@ -938,9 +937,6 @@ impl From<TransactionError> for tx_by_addr::TransactionError {
TransactionError::ProgramCacheHitMaxLimit => {
tx_by_addr::TransactionErrorType::ProgramCacheHitMaxLimit
}
TransactionError::ProcessingCancelled => {
tx_by_addr::TransactionErrorType::ProcessingCancelled
}
} as i32,
instruction_error: match transaction_error {
TransactionError::InstructionError(index, ref instruction_error) => {
Expand Down

0 comments on commit d4c4004

Please sign in to comment.