# Cursor Code Issues Report: go-zenon

**URL:** https://forum.hypercore.one/t/cursor-code-issues-report-go-zenon/595
**Category:** Development
**Created:** [April 5, 2025, 8:29pm UTC](https://forum.hypercore.one/t/cursor-code-issues-report-go-zenon/595 "2025-04-05T20:29:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![0x3639](https://forum.hypercore.one/user_avatar/forum.hypercore.one/0x3639/32/33_2.png) [@0x3639](https://forum.hypercore.one/u/0x3639)
#### Post date: [April 5, 2025, 8:29pm UTC](https://forum.hypercore.one/t/cursor-code-issues-report-go-zenon/595/1 "2025-04-05T20:29:44Z")

</div>

I’m working on the `go-zenon` code to add trusted and static nodes. Cursor is reporting a few problems with `go-zenon` that I wanted to report here.

* * *

Copy / paste from Cursor.

# Code Issues Report: go-zenon Repository

## Overview

The static code analysis has identified 4 issues in the codebase that need attention. These are primarily related to unused code and struct initialization patterns.

## Issues Breakdown

### In `node/rpcstack.go` (3 issues):

1. **Unused Function** - `func (*httpServer).listenAddr`

2. **Unused Function** - `func validatePrefix`

3. **Unused Function** - `func (*httpServer).stopWS`

### In `p2p/rlpx.go` (1 issue):

1. **Struct Initialization** - `crypto/ecdsa.PublicKey`
  - Location: Line 80, Column 10
  - Error: Struct literal uses unkeyed fields
  - Type: composites(default)
  - Impact: Potential maintenance and readability concerns

## Recommendations

1. **For Unused Functions:**

2. **For Struct Initialization:**
