Make DecodeBase{32,64} take string_view arguments

This commit is contained in:
Pieter Wuille
2022-04-04 14:10:10 -04:00
committed by MacroFake
parent 1a72d62152
commit 8ffbd1412d
3 changed files with 27 additions and 64 deletions

View File

@@ -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;