Byron Hambly
8211047b9c
Merge b00b60ed4f into merged_master (Bitcoin PR bitcoin/bitcoin#24201 )
2023-07-02 15:50:25 +00:00
Byron Hambly
ef3b7c2fc0
Merge 5574881ce3 into merged_master (Bitcoin PR bitcoin/bitcoin#23354 )
2023-05-16 12:49:09 +00:00
Byron Hambly
9b7c9154fe
Merge c4fc899442 into merged_master (Bitcoin PR bitcoin/bitcoin#22950 )
2023-05-09 12:21:13 +00:00
Byron Hambly
a6c2f3fa4b
Merge eabc2c482a into merged_master (Bitcoin PR bitcoin/bitcoin#23102 )
2023-04-24 11:01:44 +00:00
Byron Hambly
b145f52cab
Merge a8a272ac32 into merged_master (Bitcoin PR bitcoin/bitcoin#22734 )
2023-04-23 07:16:28 +00:00
Byron Hambly
bed252471a
Merge 0c1a39390f into merged_master (Bitcoin PR bitcoin/bitcoin#23041 )
2023-04-22 07:38:10 +00:00
Byron Hambly
6382bb18e8
Merge 053a5fc7d9 into merged_master (Bitcoin PR bitcoin/bitcoin#22762 )
2023-04-21 07:24:43 +00:00
James Dorfman
82d02480bd
Merge 7d7d5e8efd into merged_master (Bitcoin PR bitcoin/bitcoin#22879 )
2023-04-21 01:37:33 +00:00
junderw
d41ed32153
p2p: Avoid InitError when downgrading peers.dat
...
fixes #24188
When downgrading, a peers.dat with a future version that has a minimum
required version larger than the downgraded version would cause an InitError.
This commit changes this behavior to overwrite the existing peers.dat with
a new empty one, while creating a backup in peers.dat.bak.
2022-02-25 09:53:10 +09:00
Pieter Wuille
d891ae7681
Introduce new V4 format addrman
...
92617b7a75 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.
2021-10-25 13:48:21 -04:00
Amiti Uttarwar
dd8f7f2500
scripted-diff: Rename CAddrMan to AddrMan
...
-BEGIN VERIFY SCRIPT-
git grep -l CAddrMan src/ test/ | xargs sed -i 's/CAddrMan/AddrMan/g'
-END VERIFY SCRIPT-
2021-09-28 22:21:10 -04:00
MarcoFalke
fa01f22e6e
test: Add missing re.escape() to feature_addrman test
2021-09-27 09:52:41 +02:00
MarcoFalke
fa7a883f5a
addrman: Replace assert with throw on corrupt data
...
Assert should only be used for program internal logic errors, not to
sanitize external user input.
2021-09-21 10:09:45 +02:00
MarcoFalke
faa81f9486
test: Add addrman deserialization error tests
2021-09-20 09:07:44 +02:00
MarcoFalke
fa55c3dc1b
Raise InitError when peers.dat is invalid or corrupted
2021-09-09 09:20:43 +02:00
MarcoFalke
fab0b55cf0
addrman: Fix format string in deserialize error
...
Also add a regression test.
2021-09-05 10:26:03 +02:00