From d4c4004d3d3aaa124cbc012d0902e12c6cdde25e Mon Sep 17 00:00:00 2001 From: Ryo Onodera Date: Mon, 10 Jun 2024 22:28:49 +0900 Subject: [PATCH] Revert some unused code changes... --- runtime/src/bank.rs | 2 +- sdk/src/transaction/error.rs | 6 ------ storage-proto/proto/transaction_by_addr.proto | 1 - storage-proto/src/convert.rs | 4 ---- 4 files changed, 1 insertion(+), 12 deletions(-) diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index 85ee0ceb57ea16..cda1cfeecb2295 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -249,7 +249,7 @@ struct RentMetrics { pub type BankStatusCache = StatusCache>; #[cfg_attr( feature = "frozen-abi", - frozen_abi(digest = "CyD3t1HF7U63HhZawzETFFfo8XydftV8X7rnUTKtiN1G") + frozen_abi(digest = "9Pf3NTGr1AEzB4nKaVBY24uNwoQR4aJi8vc96W6kGvNk") )] pub type BankSlotDelta = SlotDelta>; diff --git a/sdk/src/transaction/error.rs b/sdk/src/transaction/error.rs index 83f205898d6051..41d2d94348180c 100644 --- a/sdk/src/transaction/error.rs +++ b/sdk/src/transaction/error.rs @@ -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 for TransactionError { diff --git a/storage-proto/proto/transaction_by_addr.proto b/storage-proto/proto/transaction_by_addr.proto index 43a5e22effd83a..d0fa74a2104707 100644 --- a/storage-proto/proto/transaction_by_addr.proto +++ b/storage-proto/proto/transaction_by_addr.proto @@ -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 { diff --git a/storage-proto/src/convert.rs b/storage-proto/src/convert.rs index 3c124a20f6b376..8d6669e44b43f1 100644 --- a/storage-proto/src/convert.rs +++ b/storage-proto/src/convert.rs @@ -816,7 +816,6 @@ impl TryFrom for TransactionError { 34 => TransactionError::ResanitizationNeeded, 36 => TransactionError::UnbalancedTransaction, 37 => TransactionError::ProgramCacheHitMaxLimit, - 38 => TransactionError::ProcessingCancelled, _ => return Err("Invalid TransactionError"), }) } @@ -938,9 +937,6 @@ impl From 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) => {