Add CC type to extract destination

This commit is contained in:
jl777
2018-07-21 02:53:24 -11:00
parent 246ea3c3ca
commit f6753cc656
2 changed files with 7 additions and 2 deletions

View File

@@ -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;
}