diff options
author | Pieter Wuille <pieter@wuille.net> | 2021-10-25 11:09:30 -0400 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2021-10-25 13:48:21 -0400 |
commit | d891ae768185b464cae476c16c74c365372d4a3c (patch) | |
tree | d37fbeef2d4c45d68fc24e996e91d765a9ad5451 /src/addrman.cpp | |
parent | 22a90186496aea8025316bc5616905ffcf1aeb29 (diff) |
Introduce new V4 format addrman
92617b7a758c0425330fba4b886296730567927c effectively changed the
on-disk format in an incompatible way: old deserializers cannot
deal with multiple entries for the same IP.
Introduce a V4_MULTIPORT format, and increment the compatibility base,
so that old versions correctly recognize it as an incompatible future
version.
Diffstat (limited to 'src/addrman.cpp')
-rw-r--r-- | src/addrman.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/addrman.cpp b/src/addrman.cpp index 86f56052c1..b579995a2c 100644 --- a/src/addrman.cpp +++ b/src/addrman.cpp @@ -171,7 +171,7 @@ void AddrManImpl::Serialize(Stream& s_) const // Increment `lowest_compatible` iff a newly introduced format is incompatible with // the previous one. - static constexpr uint8_t lowest_compatible = Format::V3_BIP155; + static constexpr uint8_t lowest_compatible = Format::V4_MULTIPORT; s << static_cast<uint8_t>(INCOMPATIBILITY_BASE + lowest_compatible); s << nKey; |