Browse Source

test

pull/4/head
jl777 8 years ago
parent
commit
4aa2c64e7b
  1. 2
      src/komodo_utils.h
  2. 2
      src/script/standard.cpp
  3. 4
      src/wallet/rpcwallet.cpp

2
src/komodo_utils.h

@ -902,7 +902,7 @@ int32_t komodo_opreturnscript(uint8_t *script,uint8_t type,uint8_t *opret,int32_
script[offset++] = opretlen;
}
} else script[offset++] = opretlen;
script[offset++] = type;
script[offset] = type; // covered by opretlen
memcpy(&script[offset],opret,opretlen);
return(opretlen + offset);
}

2
src/script/standard.cpp

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

4
src/wallet/rpcwallet.cpp

@ -393,7 +393,11 @@ static void SendMoney(const CTxDestination &address, CAmount nValue, bool fSubtr
opretpubkey.resize(opretlen);
ptr = (uint8_t *)opretpubkey.data();
for (i=0; i<opretlen; i++)
{
ptr[i] = opretbuf[i];
printf("%02x",ptr[i]);
}
printf(" opretbuf[%d]\n",opretlen);
CRecipient opret = { opretpubkey, opretValue, false };
vecSend.push_back(opret);
}

Loading…
Cancel
Save