Skip to content

Commit

Permalink
Fixing txindex issue with M-addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
karelbilek committed May 15, 2017
1 parent 909371e commit 22a15b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/base58.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 22a15b1

Please sign in to comment.