GetTokensCCaddress1of2 call corrected (test) in IsHeirFundingVout

This commit is contained in:
dimxy
2019-01-18 01:04:46 +05:00
parent 092b4c987a
commit 0177628e7d
+1 -1
View File
@@ -252,7 +252,7 @@ int64_t IsHeirFundingVout(struct CCcontract_info* cp, const CTransaction& tx, in
{
char destaddr[65], heirFundingAddr[65];
GetCCaddress1of2(cp, heirFundingAddr, ownerPubkey, heirPubkey);
GetTokensCCaddress1of2(cp, heirFundingAddr, ownerPubkey, heirPubkey);
if (tx.vout[voutIndex].scriptPubKey.IsPayToCryptoCondition() != 0) {
// NOTE: dimxy it was unsafe 'Getscriptaddress(destaddr,tx.vout[voutIndex].scriptPubKey) > 0' here:
if (Getscriptaddress(destaddr, tx.vout[voutIndex].scriptPubKey) && strcmp(destaddr, heirFundingAddr) == 0)