mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge 2d5acc901d into merged_master (Bitcoin PR bitcoin/bitcoin#27015)
This commit is contained in:
commit
019fef19ab
2 changed files with 1 additions and 3 deletions
|
|
@ -106,7 +106,7 @@ public:
|
|||
* @param[in] in_new Select addresses only from one table (true = new, false = tried, nullopt = both)
|
||||
* @return Number of unique addresses that match specified options.
|
||||
*/
|
||||
size_t Size(std::optional<Network> net = {}, std::optional<bool> in_new = {}) const;
|
||||
size_t Size(std::optional<Network> net = std::nullopt, std::optional<bool> in_new = std::nullopt) const;
|
||||
|
||||
/**
|
||||
* Attempt to add one or more addresses to addrman's new table.
|
||||
|
|
|
|||
|
|
@ -947,8 +947,6 @@ BOOST_AUTO_TEST_CASE(load_addrman_corrupted)
|
|||
} catch (const std::exception&) {
|
||||
exceptionThrown = true;
|
||||
}
|
||||
// Even though de-serialization failed addrman is not left in a clean state.
|
||||
BOOST_CHECK(addrman1.Size() == 1);
|
||||
BOOST_CHECK(exceptionThrown);
|
||||
|
||||
// Test that ReadFromStream fails if peers.dat is corrupt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue