Add a MultiAddress.Validate() that verifies each protocol is known and its Value is valid. Throws an Exception if not valid.
When parsing a MultiAddress we do not want to validate because more recent IPFS peers might support protocols we don't know about. So validate, should only be used when we are about to contact the peer.
Add a
MultiAddress.Validate()
that verifies each protocol is known and itsValue
is valid. Throws anException
if not valid.When parsing a
MultiAddress
we do not want to validate because more recent IPFS peers might support protocols we don't know about. So validate, should only be used when we are about to contact the peer.