Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into feature/mq
Browse files Browse the repository at this point in the history
TransactionResult optimization, add a new method GetTransactionResultV2Async
  • Loading branch information
JimAelf committed Dec 4, 2024
2 parents 599be60 + dc42b74 commit 3858830
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 3858830

Please sign in to comment.