mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Add NODISCARD to all {Decode,Parse}[...](...) functions returning bool. Sort includes.
This commit is contained in:
@@ -263,7 +263,7 @@ std::string DecodeBase32(const std::string& str)
|
||||
return std::string((const char*)vchRet.data(), vchRet.size());
|
||||
}
|
||||
|
||||
static bool ParsePrechecks(const std::string& str)
|
||||
NODISCARD static bool ParsePrechecks(const std::string& str)
|
||||
{
|
||||
if (str.empty()) // No empty string allowed
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user