File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ void AddrManImpl::Serialize(Stream& s_) const
171
171
172
172
// Increment `lowest_compatible` iff a newly introduced format is incompatible with
173
173
// the previous one.
174
- static constexpr uint8_t lowest_compatible = Format::V3_BIP155 ;
174
+ static constexpr uint8_t lowest_compatible = Format::V4_MULTIPORT ;
175
175
s << static_cast <uint8_t >(INCOMPATIBILITY_BASE + lowest_compatible);
176
176
177
177
s << nKey;
Original file line number Diff line number Diff line change @@ -157,14 +157,15 @@ class AddrManImpl
157
157
V1_DETERMINISTIC = 1 , // !< for pre-asmap files
158
158
V2_ASMAP = 2 , // !< for files including asmap version
159
159
V3_BIP155 = 3 , // !< same as V2_ASMAP plus addresses are in BIP155 format
160
+ V4_MULTIPORT = 4 , // !< adds support for multiple ports per IP
160
161
};
161
162
162
163
// ! The maximum format this software knows it can unserialize. Also, we always serialize
163
164
// ! in this format.
164
165
// ! The format (first byte in the serialized stream) can be higher than this and
165
166
// ! still this software may be able to unserialize the file - if the second byte
166
167
// ! (see `lowest_compatible` in `Unserialize()`) is less or equal to this.
167
- static constexpr Format FILE_FORMAT = Format::V3_BIP155 ;
168
+ static constexpr Format FILE_FORMAT = Format::V4_MULTIPORT ;
168
169
169
170
// ! The initial value of a field that is incremented every time an incompatible format
170
171
// ! change is made (such that old software versions would not be able to parse and
Original file line number Diff line number Diff line change 18
18
def serialize_addrman (
19
19
* ,
20
20
format = 1 ,
21
- lowest_compatible = 3 ,
21
+ lowest_compatible = 4 ,
22
22
net_magic = "regtest" ,
23
23
bucket_key = 1 ,
24
24
len_new = None ,
@@ -75,7 +75,7 @@ def run_test(self):
75
75
expected_msg = init_error (
76
76
"Unsupported format of addrman database: 1. It is compatible with "
77
77
"formats >=111, but the maximum supported by this version of "
78
- f"{ self .config ['environment' ]['PACKAGE_NAME' ]} is 3 .: (.+)"
78
+ f"{ self .config ['environment' ]['PACKAGE_NAME' ]} is 4 .: (.+)"
79
79
),
80
80
match = ErrorMatch .FULL_REGEX ,
81
81
)
You can’t perform that action at this time.
0 commit comments