Browse files

Allow only real namecoin addresses Address starting with '1' will be …

…refused and hidden from wallet. Funds associated with '1' addresses are still usable because they are associated with a hash160 (and not directly an address), which does not depend from the address format. For each '1' address, a corresponding 'N/M' address exists if you want to find your funds in the block explorer. Make a backup of your wallet before using this patch :p
  • Loading branch information...
1 parent 4c15615 commit 1e8153aa77dac03de8379291d611817a308dc215 Khalahan committed Jul 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/base58.h
@@ -181,7 +181,7 @@ inline bool AddressToHash160(const char* psz, uint160& hash160Ret)
if (vch.size() != sizeof(hash160Ret) + 1)
return false;
memcpy(&hash160Ret, &vch[1], sizeof(hash160Ret));
- return (nVersion <= GetAddressVersion());
+ return (nVersion == GetAddressVersion());
inline bool AddressToHash160(const std::string& str, uint160& hash160Ret)

0 comments on commit 1e8153a

Please sign in to comment.