Skip to content

Commit c6a995e

Browse files
Improve readability of DecodeBase58Check(...)
1 parent affe927 commit c6a995e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/base58.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ bool DecodeBase58Check(const char* psz, std::vector<unsigned char>& vchRet)
136136
}
137137
// re-calculate the checksum, ensure it matches the included 4-byte checksum
138138
uint256 hash = Hash(vchRet.begin(), vchRet.end() - 4);
139-
if (memcmp(&hash, &vchRet.end()[-4], 4) != 0) {
139+
if (memcmp(&hash, &vchRet[vchRet.size() - 4], 4) != 0) {
140140
vchRet.clear();
141141
return false;
142142
}

0 commit comments

Comments
 (0)