This change allows us to dramatically reduce electrum-server RPC overhead, but breaks compatibility. If you are using script which depends on this functionality then add decoderawtransaction to get a parsed tx representation.
{
if (fPrintTransactionDetail)
{
- Object entry;
+ CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
+ ssTx << tx;
+ string strHex = HexStr(ssTx.begin(), ssTx.end());
- entry.push_back(Pair("txid", tx.GetHash().GetHex()));
- TxToJSON(tx, 0, entry);
-
- txinfo.push_back(entry);
+ txinfo.push_back(strHex);
}
else
txinfo.push_back(tx.GetHash().GetHex());