Merge pull request #368 from svost/patch-2
authorCryptoManiac <CryptoManiac@users.noreply.github.com>
Thu, 14 Sep 2017 02:26:44 +0000 (05:26 +0300)
committerGitHub <noreply@github.com>
Thu, 14 Sep 2017 02:26:44 +0000 (05:26 +0300)
Fix CBitcoinAddress::GetKeyID logic

src/base58.cpp

index 1c26380..dc813ab 100644 (file)
@@ -352,6 +352,7 @@ bool DecodeBase58Check(const std::string& str, std::vector<unsigned char>& vchRe
             CMalleablePubKey mPubKey;
             mPubKey.setvch(vchData);
             keyID = mPubKey.GetID();
+            return true;
         }
         default: return false;
         }