aboutsummaryrefslogtreecommitdiff
path: root/src/netaddress.h
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2021-09-23 17:22:05 +0200
committerJon Atack <jon@atack.com>2021-09-23 17:32:28 +0200
commitd14395bc5db55331115fa3c1e71741d1de7f092f (patch)
tree030f7ea52c02a3b0ac1b4f091ac3f429628f4d27 /src/netaddress.h
parent5fb6701bdb05f935ab65d8fe0fcc15c12e32d134 (diff)
downloadbitcoin-d14395bc5db55331115fa3c1e71741d1de7f092f.tar.xz
net, doc: provide context for UnserializeV1Array()
Diffstat (limited to 'src/netaddress.h')
-rw-r--r--src/netaddress.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/netaddress.h b/src/netaddress.h
index eb35ed3fac..d76e4d525a 100644
--- a/src/netaddress.h
+++ b/src/netaddress.h
@@ -386,6 +386,12 @@ private:
/**
* Unserialize from a pre-ADDRv2/BIP155 format from an array.
+ *
+ * This function is only called from UnserializeV1Stream() and is a wrapper
+ * for SetLegacyIPv6(); however, we keep it for symmetry with
+ * SerializeV1Array() to have pairs of ser/unser functions and to make clear
+ * that if one is altered, a corresponding reverse modification should be
+ * applied to the other.
*/
void UnserializeV1Array(uint8_t (&arr)[V1_SERIALIZATION_SIZE])
{