ensure we don't return witness data in the transaction w/o segwit rule

This commit is contained in:
Brannon King 2019-10-09 21:53:07 -06:00
parent b65d09c31a
commit b57aca5a93

View file

@ -587,7 +587,7 @@ static UniValue getblocktemplate(const JSONRPCRequest& request)
UniValue entry(UniValue::VOBJ);
entry.pushKV("data", EncodeHexTx(tx));
entry.pushKV("data", EncodeHexTx(tx, fSupportsSegwit ? 0 : SERIALIZE_TRANSACTION_NO_WITNESS));
entry.pushKV("txid", txHash.GetHex());
entry.pushKV("hash", tx.GetWitnessHash().GetHex());