mirror of https://github.com/waku-org/nwaku.git
chore: ignore arbitrary data stored in `multiaddrs` enr key (#2853)
This commit is contained in:
parent
7205f95cff
commit
76d5b2642d
|
@ -55,7 +55,8 @@ func decodeMultiaddrs(buffer: seq[byte]): EnrResult[seq[MultiAddress]] =
|
|||
return err("malformed multiaddr field: invalid length")
|
||||
|
||||
let addrRaw = ?readBytes(buffer, addrLen.int, pos)
|
||||
let address = MultiAddress.init(addrRaw).get()
|
||||
let address = MultiAddress.init(addrRaw).valueOr:
|
||||
continue # Not a valid multiaddress
|
||||
|
||||
multiaddrs.add(address)
|
||||
|
||||
|
|
Loading…
Reference in New Issue