From c4a291ca962c1ced6a00f6432073c6485c726c5e Mon Sep 17 00:00:00 2001 From: "jim.dong" Date: Wed, 4 Dec 2024 11:48:34 +0800 Subject: [PATCH] TransactionResult optimization, add a new method GetTransactionResultV2Async --- .../Services/TransactionResultAppService.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/AElf.WebApp.Application.Chain/Services/TransactionResultAppService.cs b/src/AElf.WebApp.Application.Chain/Services/TransactionResultAppService.cs index 8bdc750025..01d4272b64 100644 --- a/src/AElf.WebApp.Application.Chain/Services/TransactionResultAppService.cs +++ b/src/AElf.WebApp.Application.Chain/Services/TransactionResultAppService.cs @@ -120,16 +120,6 @@ await _transactionResultProxyService.InvalidTransactionResultService.GetInvalidT return output; } } - - var chain = await _blockchainService.GetChainAsync(); - if (chain.BestChainHeight - output.Transaction.RefBlockNumber > KernelConstants.ReferenceBlockValidPeriod - && transactionResult.Status == TransactionResultStatus.NotExisted) - { - // set a the Error message to the output to infer that the transaction will never succeed. - var error = "The transaction is already expired, and it will never succeed."; - output.Error = TransactionErrorResolver.TakeErrorMessage(error, _webAppOptions.IsDebugMode); - return output; - } return output; } ///