test
This commit is contained in:
@@ -902,7 +902,7 @@ int32_t komodo_opreturnscript(uint8_t *script,uint8_t type,uint8_t *opret,int32_
|
|||||||
script[offset++] = opretlen;
|
script[offset++] = opretlen;
|
||||||
}
|
}
|
||||||
} else script[offset++] = opretlen;
|
} else script[offset++] = opretlen;
|
||||||
script[offset++] = type;
|
script[offset] = type; // covered by opretlen
|
||||||
memcpy(&script[offset],opret,opretlen);
|
memcpy(&script[offset],opret,opretlen);
|
||||||
return(opretlen + offset);
|
return(opretlen + offset);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ bool Solver(const CScript& scriptPubKey, txnouttype& typeRet, vector<vector<unsi
|
|||||||
mTemplates.insert(make_pair(TX_MULTISIG, CScript() << OP_SMALLINTEGER << OP_PUBKEYS << OP_SMALLINTEGER << OP_CHECKMULTISIG));
|
mTemplates.insert(make_pair(TX_MULTISIG, CScript() << OP_SMALLINTEGER << OP_PUBKEYS << OP_SMALLINTEGER << OP_CHECKMULTISIG));
|
||||||
|
|
||||||
// Empty, provably prunable, data-carrying output
|
// Empty, provably prunable, data-carrying output
|
||||||
//if (GetBoolArg("-datacarrier", true))
|
if (GetBoolArg("-datacarrier", true))
|
||||||
mTemplates.insert(make_pair(TX_NULL_DATA, CScript() << OP_RETURN << OP_SMALLDATA));
|
mTemplates.insert(make_pair(TX_NULL_DATA, CScript() << OP_RETURN << OP_SMALLDATA));
|
||||||
mTemplates.insert(make_pair(TX_NULL_DATA, CScript() << OP_RETURN));
|
mTemplates.insert(make_pair(TX_NULL_DATA, CScript() << OP_RETURN));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -393,7 +393,11 @@ static void SendMoney(const CTxDestination &address, CAmount nValue, bool fSubtr
|
|||||||
opretpubkey.resize(opretlen);
|
opretpubkey.resize(opretlen);
|
||||||
ptr = (uint8_t *)opretpubkey.data();
|
ptr = (uint8_t *)opretpubkey.data();
|
||||||
for (i=0; i<opretlen; i++)
|
for (i=0; i<opretlen; i++)
|
||||||
|
{
|
||||||
ptr[i] = opretbuf[i];
|
ptr[i] = opretbuf[i];
|
||||||
|
printf("%02x",ptr[i]);
|
||||||
|
}
|
||||||
|
printf(" opretbuf[%d]\n",opretlen);
|
||||||
CRecipient opret = { opretpubkey, opretValue, false };
|
CRecipient opret = { opretpubkey, opretValue, false };
|
||||||
vecSend.push_back(opret);
|
vecSend.push_back(opret);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user