Skip to content

Commit

Permalink
TransactionResult optimization, add a new method GetTransactionResult…
Browse files Browse the repository at this point in the history
…V2Async
  • Loading branch information
JimAelf committed Dec 4, 2024
1 parent 4926267 commit c4a291c
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 c4a291c

Please sign in to comment.