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