mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01:00
Make DecodeBase{32,64} always return vector, not string
Base32/base64 are mechanisms for encoding binary data. That they'd decode to a string is just bizarre. The fact that they'd do that based on the type of input arguments even more so.
This commit is contained in:
@@ -235,7 +235,7 @@ bool CNetAddr::SetTor(const std::string& addr)
|
||||
}
|
||||
|
||||
bool invalid;
|
||||
const auto& input = DecodeBase32(addr.substr(0, addr.size() - suffix_len).c_str(), &invalid);
|
||||
const auto& input = DecodeBase32(addr.substr(0, addr.size() - suffix_len), &invalid);
|
||||
|
||||
if (invalid) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user