Skip to content

Commit

Permalink
If transaction satus is "NOT_EXIST", and the lag of the refblock is b…
Browse files Browse the repository at this point in the history
…igger that 512, this transaction will never bee succeed in the future
  • Loading branch information
JimAelf committed Nov 19, 2024
1 parent de45a0f commit 60cb378
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ await _transactionResultProxyService.InvalidTransactionResultService.GetInvalidT
}

var chain = await _blockchainService.GetChainAsync();
if (chain.BestChainHeight - output.Transaction.RefBlockNumber > KernelConstants.ReferenceBlockValidPeriod)
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 transactions status is expired, and it will never succeed.";
Expand Down

0 comments on commit 60cb378

Please sign in to comment.