From fb3e812277041f239b97b88689a5076796d75b9b Mon Sep 17 00:00:00 2001 From: brunoerg Date: Tue, 13 Sep 2022 18:19:40 -0300 Subject: p2p: return `CSubNet` in `LookupSubNet` --- src/netbase.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/netbase.h') diff --git a/src/netbase.h b/src/netbase.h index 1da4f5c51d..dbcc126885 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -171,11 +171,9 @@ CService LookupNumeric(const std::string& name, uint16_t portDefault = 0, DNSLoo * @param[in] subnet_str A string representation of a subnet of the form * `network address [ "/", ( CIDR-style suffix | netmask ) ]` * e.g. "2001:db8::/32", "192.0.2.0/255.255.255.0" or "8.8.8.8". - * @param[out] subnet_out Internal subnet representation, if parsable/resolvable - * from `subnet_str`. - * @returns whether the operation succeeded or not. + * @returns a CSubNet object (that may or may not be valid). */ -bool LookupSubNet(const std::string& subnet_str, CSubNet& subnet_out); +CSubNet LookupSubNet(const std::string& subnet_str); /** * Create a TCP socket in the given address family. -- cgit v1.2.3