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