fix copilots suggestions

This commit is contained in:
gmega 2026-06-22 16:50:44 -03:00
parent f091442372
commit 074fe53618
No known key found for this signature in database
GPG Key ID: 6290D34EAD824B18
2 changed files with 11 additions and 1 deletions

View File

@ -105,6 +105,7 @@ components:
- addrs
- spr
- announceAddresses
- libp2pPubKey
- table
- storage
properties:
@ -116,10 +117,18 @@ components:
$ref: "#/components/schemas/MultiAddress"
spr:
$ref: "#/components/schemas/SPR"
providerRecord:
$ref: "#/components/schemas/SPR"
announceAddresses:
type: array
items:
$ref: "#/components/schemas/MultiAddress"
libp2pPubKey:
type: string
description: Hex-encoded libp2p public key of the node
mixPubKey:
type: string
description: Hex-encoded mix public key (present only for nodes that support mix)
table:
$ref: "#/components/schemas/PeersTable"
storage:

View File

@ -6,6 +6,7 @@ import pkg/libp2p_mix
import pkg/libp2p_mix/curve25519
import pkg/codexdht/discv5/node as dn
import pkg/codexdht/discv5/routing_table as rt
import pkg/stew/byteutils
import ../node
import ../conf
import ../utils/json
@ -108,7 +109,7 @@ proc init*(_: type DebugInfo, node: StorageNodeRef): DebugInfo =
peerId = peerInfo.peerId
libp2pPubKeyBytes = peerInfo.publicKey.getBytes()
# Cause there's no cannonical way to get your own key from MixProtocol
# Cause there's no canonical way to get your own key from MixProtocol
# that I'm aware of.
privateAccess(MixProtocol)