Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
David20240718 committed Nov 5, 2024
1 parent 5b397ad commit 7b57fa0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,18 @@ private async Task<ExecutionReturnSetMergeResult> ExecuteParallelizableTransacti
List<List<Transaction>> groupedTransactions, BlockHeader blockHeader, BlockStateSet blockStateSet,
CancellationToken cancellationToken)
{
Logger.LogInformation("ExecuteParallelizableTransactionsAsync groupedTransactions size:{}",groupedTransactions.Count);
Logger.LogInformation("ExecuteParallelizableTransactionsAsync blockStateSet size:{}",blockStateSet.BlockExecutedData.Count);

var tasks = groupedTransactions.Select(
txns => ExecuteAndPreprocessResult(new TransactionExecutingDto
{
BlockHeader = blockHeader,
Transactions = txns,
PartialBlockStateSet = blockStateSet
}, cancellationToken));
Logger.LogInformation("ExecuteParallelizableTransactionsAsync tasks size:{}",tasks.Count());

var timeout = 200;
var timeoutTask = Task.Delay(timeout, cancellationToken);
var completedTask = await Task.WhenAny(Task.WhenAll(tasks), timeoutTask);
Expand Down

0 comments on commit 7b57fa0

Please sign in to comment.