Add CC type to extract destination
This commit is contained in:
@@ -238,8 +238,7 @@ bool Getscriptaddress(char *destaddr,const CScript &scriptPubKey)
|
||||
return(true);
|
||||
}
|
||||
fprintf(stderr,"ExtractDestination failed\n");
|
||||
}
|
||||
fprintf(stderr,"Getscriptaddress nonstandard\n");
|
||||
} else fprintf(stderr,"Getscriptaddress nonstandard\n");
|
||||
return(false);
|
||||
}
|
||||
|
||||
|
||||
@@ -251,6 +251,12 @@ bool ExtractDestination(const CScript& scriptPubKey, CTxDestination& addressRet)
|
||||
addressRet = CScriptID(uint160(vSolutions[0]));
|
||||
return true;
|
||||
}
|
||||
|
||||
else if (IsCryptoConditionsEnabled() != 0 && whichType == TX_CRYPTOCONDITION)
|
||||
{
|
||||
addressRet = CScriptID(uint160(vSolutions[0]));
|
||||
return true;
|
||||
}
|
||||
// Multisig txns have more than one address...
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user