Always makeburnoutput raw proof

This commit is contained in:
jl777
2019-01-02 04:52:22 -11:00
parent 398cc66405
commit 5298e3c99a

View File

@@ -41,19 +41,10 @@ CTransaction MakeImportCoinTransaction(const TxProof proof, const CTransaction b
CTxOut MakeBurnOutput(CAmount value, uint32_t targetCCid, std::string targetSymbol, const std::vector<CTxOut> payouts,std::vector<uint8_t> rawproof) CTxOut MakeBurnOutput(CAmount value, uint32_t targetCCid, std::string targetSymbol, const std::vector<CTxOut> payouts,std::vector<uint8_t> rawproof)
{ {
std::vector<uint8_t> opret; std::vector<uint8_t> opret;
if ( targetCCid != 0xffffffff ) opret = E_MARSHAL(ss << VARINT(targetCCid);
{ ss << targetSymbol;
opret = E_MARSHAL(ss << VARINT(targetCCid); ss << SerializeHash(payouts);
ss << targetSymbol; ss << rawproof);
ss << SerializeHash(payouts));
}
else
{
opret = E_MARSHAL(ss << VARINT(targetCCid);
ss << targetSymbol;
ss << SerializeHash(payouts);
ss << rawproof);
}
return CTxOut(value, CScript() << OP_RETURN << opret); return CTxOut(value, CScript() << OP_RETURN << opret);
} }