TX_NONSTANDARD,
// 'standard' transaction types:
TX_PUBKEY,
+ TX_PUBKEY_DROP,
TX_PUBKEYHASH,
TX_SCRIPTHASH,
TX_MULTISIG,
if (opcode == OP_0)
return 0;
assert(opcode >= OP_1 && opcode <= OP_16);
- return (int)opcode - (int)(OP_1 - 1);
+ return (opcode - (OP_1 - 1));
}
static opcodetype EncodeOP_N(int n)
{
bool HasCanonicalPushes() const;
void SetDestination(const CTxDestination& address);
+ void SetDestination(const CPubKey& R, CPubKey& pubKeyVariant);
void SetMultisig(int nRequired, const std::vector<CKey>& keys);
// Given two sets of signatures for scriptPubKey, possibly with OP_0 placeholders,
// combine them intelligently and return the result.
-CScript CombineSignatures(CScript scriptPubKey, const CTransaction& txTo, unsigned int nIn, const CScript& scriptSig1, const CScript& scriptSig2);
+CScript CombineSignatures(const CScript& scriptPubKey, const CTransaction& txTo, unsigned int nIn, const CScript& scriptSig1, const CScript& scriptSig2);
#endif