Skip to content

Commit

Permalink
Merge pull request #3627 from AElfProject/feature/transaction-result-…
Browse files Browse the repository at this point in the history
…optimize

Merge pull request #3626 from AElfProject/dev
  • Loading branch information
JimAelf authored Dec 4, 2024
2 parents 9d567e4 + c4a291c commit dc42b74
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
/// <summary>
Expand Down

0 comments on commit dc42b74

Please sign in to comment.