mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-08 14:47:31 +02:00
refactor: Return std::optional from GetProxy
This commit is contained in:
@@ -187,7 +187,7 @@ public:
|
||||
args().WriteSettingsFile();
|
||||
}
|
||||
void mapPort(bool enable) override { StartMapPort(enable); }
|
||||
bool getProxy(Network net, Proxy& proxy_info) override { return GetProxy(net, proxy_info); }
|
||||
std::optional<Proxy> getProxy(Network net) override { return GetProxy(net); }
|
||||
size_t getNodeCount(ConnectionDirection flags) override
|
||||
{
|
||||
return m_context->connman ? m_context->connman->GetNodeCount(flags) : 0;
|
||||
|
||||
Reference in New Issue
Block a user