Replace MakeSpan helper with Span deduction guide
This commit is contained in:
1 parent
383d350bd5
commit
568dd2f839
16 files changed
+106
-104
No files matched your search
+1
-1
@@ -149,7 +149,7 @@ std::string EncodeBase58Check(Span<const unsigned char> input)
|
||||
return false;
|
||||
}
|
||||
// re-calculate the checksum, ensure it matches the included 4-byte checksum
|
||||
uint256 hash = Hash(MakeSpan(vchRet).first(vchRet.size() - 4));
|
||||
uint256 hash = Hash(Span{vchRet}.first(vchRet.size() - 4));
|
||||
if (memcmp(&hash, &vchRet[vchRet.size() - 4], 4) != 0) {
|
||||
vchRet.clear();
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user