From 22a15b1d51d5f3cafa82cd7278597f55ba9664cd Mon Sep 17 00:00:00 2001 From: Karel Bilek Date: Mon, 15 May 2017 18:35:39 +0200 Subject: [PATCH] Fixing txindex issue with M-addresses --- src/base58.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/base58.cpp b/src/base58.cpp index 1cd1fbd3d..b85a38970 100644 --- a/src/base58.cpp +++ b/src/base58.cpp @@ -285,7 +285,8 @@ bool CBitcoinAddress::GetIndexKey(uint160& hashBytes, int& type) const memcpy(&hashBytes, &vchData[0], 20); type = 1; return true; - } else if (vchVersion == Params().Base58Prefix(CChainParams::SCRIPT_ADDRESS)) { + } else if (vchVersion == Params().Base58Prefix(CChainParams::SCRIPT_ADDRESS) || + vchVersion == Params().Base58Prefix(CChainParams::SCRIPT_ADDRESS2)) { memcpy(&hashBytes, &vchData[0], 20); type = 2; return true;