Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
Merge pull request #3 from runn1ng/0.13-master
Browse files Browse the repository at this point in the history
Fixing txindex issue with M-addresses
  • Loading branch information
losh11 authored May 15, 2017
2 parents 909371e + 22a15b1 commit 7029ba2
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 7029ba2

Please sign in to comment.