mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-27 16:05:39 +01:00
test: Add unit test coverage for Init and Shutdown code
Currently this code is not called in unit tests. Calling should make it possible to write tests for things like IPC exceptions being thrown during shutdown.
This commit is contained in:
@@ -266,6 +266,12 @@ std::optional<CService> GetLocalAddrForPeer(CNode& node)
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
void ClearLocal()
|
||||
{
|
||||
LOCK(g_maplocalhost_mutex);
|
||||
return mapLocalHost.clear();
|
||||
}
|
||||
|
||||
// learn a new local address
|
||||
bool AddLocal(const CService& addr_, int nScore)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user