mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01:00
Make DecodeBase{32,64} take string_view arguments
This commit is contained in:
@@ -234,7 +234,7 @@ bool CNetAddr::SetTor(const std::string& addr)
|
||||
return false;
|
||||
}
|
||||
|
||||
auto input = DecodeBase32(addr.substr(0, addr.size() - suffix_len));
|
||||
auto input = DecodeBase32(std::string_view{addr}.substr(0, addr.size() - suffix_len));
|
||||
|
||||
if (!input) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user