Skip to content

Commit

Permalink
Eliminate unneeded function.
Browse files Browse the repository at this point in the history
  • Loading branch information
cheatfate committed Nov 27, 2024
1 parent 708d541 commit 41d7a09
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions beacon_chain/rpc/rest_node_api.nim
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,6 @@ proc toString(direction: PeerType): string =
of PeerType.Outgoing:
"outbound"

proc getProtocolArgument(ma: MultiAddress,
codec: MultiCodec): MaResult[seq[byte]] =
var buffer: seq[byte]
for item in ma:
let
ritem = ? item
code = ? ritem.protoCode()
if code == codec:
let arg = ? ritem.protoAddress()
return ok(arg)
err("Multiaddress codec has not been found")

proc getLastSeenAddress(node: BeaconNode, id: PeerId): string =
let
address = node.network.switch.peerStore[LastSeenBook][id].valueOr:
Expand Down

0 comments on commit 41d7a09

Please sign in to comment.