update to latest libcryptoconditions
This commit is contained in:
Submodule src/cryptoconditions updated: e482849382...6b859e63a2
@@ -949,10 +949,9 @@ bool EvalScript(vector<vector<unsigned char> >& stack, const CScript& script, un
|
||||
valtype& vchFulfillment = stacktop(-2);
|
||||
valtype& vchCondition = stacktop(-1);
|
||||
|
||||
CC *cond = (CC*) calloc(1, sizeof(CC));
|
||||
char *fulfillmentBin = (char*) vchFulfillment.data();
|
||||
int rc = cc_readFulfillmentBinary(cond, fulfillmentBin, vchFulfillment.size());
|
||||
if (rc != 0) {
|
||||
CC *cond = cc_readFulfillmentBinary(fulfillmentBin, vchFulfillment.size());
|
||||
if (!cond) {
|
||||
return set_error(serror, SCRIPT_ERR_CRYPTOCONDITION_INVALID_FULFILLMENT);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user