Skip to content

Commit d14395b

Browse files
committed
net, doc: provide context for UnserializeV1Array()
1 parent 5fb6701 commit d14395b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/netaddress.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,12 @@ class CNetAddr
386386

387387
/**
388388
* Unserialize from a pre-ADDRv2/BIP155 format from an array.
389+
*
390+
* This function is only called from UnserializeV1Stream() and is a wrapper
391+
* for SetLegacyIPv6(); however, we keep it for symmetry with
392+
* SerializeV1Array() to have pairs of ser/unser functions and to make clear
393+
* that if one is altered, a corresponding reverse modification should be
394+
* applied to the other.
389395
*/
390396
void UnserializeV1Array(uint8_t (&arr)[V1_SERIALIZATION_SIZE])
391397
{

0 commit comments

Comments
 (0)