Skip to content

Commit

Permalink
Add transaction count to block fetcher logs
Browse files Browse the repository at this point in the history
  • Loading branch information
billettc committed Jan 21, 2025
1 parent bac94a0 commit 55cb093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/fetcher/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (f *RPCFetcher) Fetch(ctx context.Context, client *rpc.Client, requestedSlo
return nil, false, fmt.Errorf("decoding block %d: %w", requestedSlot, err)
}

f.logger.Info("fetcher fetched block", zap.Uint64("block_num", requestedSlot), zap.String("block_hash", blockResult.Blockhash.String()))
f.logger.Info("fetcher fetched block", zap.Uint64("block_num", requestedSlot), zap.String("block_hash", blockResult.Blockhash.String()), zap.Int("trx_count", len(blockResult.Transactions)))
return block, false, nil
}

Expand Down

0 comments on commit 55cb093

Please sign in to comment.