aboutsummaryrefslogtreecommitdiff
path: root/src/kernel
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2023-10-03 14:41:55 -0400
committerPieter Wuille <pieter@wuille.net>2023-10-04 11:04:43 -0400
commitba2e5bfc67dcffca26af9e231652ada1767cbeb2 (patch)
tree919c065cf10f09a821fd04e3e14fa6b632916f75 /src/kernel
parent97f756b12c8d8a9d3b621f296725dd7bf36bc8a9 (diff)
downloadbitcoin-ba2e5bfc67dcffca26af9e231652ada1767cbeb2.tar.xz
net: raise V1_PREFIX_LEN from 12 to 16
A "version" message in the V1 protocol starts with a fixed 16 bytes: * The 4-byte network magic * The 12-byte zero-padded command "version" plus 5 0x00 bytes The current code detects incoming V1 connections by just looking at the first 12 bytes (matching an earlier version of BIP324), but 16 bytes is more precise. This isn't an observable difference right now, as a 12 byte prefix ought to be negligible already, but it may become observable with future extensions to the protocol, so make the code match the specification.
Diffstat (limited to 'src/kernel')
0 files changed, 0 insertions, 0 deletions