Skip to content

Commit c4a291c

Browse files
committed
TransactionResult optimization, add a new method GetTransactionResultV2Async
1 parent 4926267 commit c4a291c

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)