Skip to content

Commit dc42b74

Browse files
authored
Merge pull request #3627 from AElfProject/feature/transaction-result-optimize
Merge pull request #3626 from AElfProject/dev
2 parents 9d567e4 + c4a291c commit dc42b74

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/AElf.WebApp.Application.Chain/Services/TransactionResultAppService.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -120,16 +120,6 @@ await _transactionResultProxyService.InvalidTransactionResultService.GetInvalidT
120120
return output;
121121
}
122122
}
123-
124-
var chain = await _blockchainService.GetChainAsync();
125-
if (chain.BestChainHeight - output.Transaction.RefBlockNumber > KernelConstants.ReferenceBlockValidPeriod
126-
&& transactionResult.Status == TransactionResultStatus.NotExisted)
127-
{
128-
// set a the Error message to the output to infer that the transaction will never succeed.
129-
var error = "The transaction is already expired, and it will never succeed.";
130-
output.Error = TransactionErrorResolver.TakeErrorMessage(error, _webAppOptions.IsDebugMode);
131-
return output;
132-
}
133123
return output;
134124
}
135125
/// <summary>

0 commit comments

Comments
 (0)