Changeset View
Changeset View
Standalone View
Standalone View
src/bitcoin-tx.cpp
Show First 20 Lines • Show All 757 Lines • ▼ Show 20 Lines | static void OutputTxJSON(const CTransaction &tx) { | ||||
TxToUniv(tx, uint256(), entry); | TxToUniv(tx, uint256(), entry); | ||||
std::string jsonOutput = entry.write(4); | std::string jsonOutput = entry.write(4); | ||||
fprintf(stdout, "%s\n", jsonOutput.c_str()); | fprintf(stdout, "%s\n", jsonOutput.c_str()); | ||||
} | } | ||||
static void OutputTxHash(const CTransaction &tx) { | static void OutputTxHash(const CTransaction &tx) { | ||||
// the hex-encoded transaction id. | // the hex-encoded transaction id. | ||||
std::string strHexHash = tx.GetId().GetHex(); | std::string strHexHash = tx.GetHash().GetHex(); | ||||
fprintf(stdout, "%s\n", strHexHash.c_str()); | fprintf(stdout, "%s\n", strHexHash.c_str()); | ||||
} | } | ||||
static void OutputTxHex(const CTransaction &tx) { | static void OutputTxHex(const CTransaction &tx) { | ||||
std::string strHex = EncodeHexTx(tx); | std::string strHex = EncodeHexTx(tx); | ||||
fprintf(stdout, "%s\n", strHex.c_str()); | fprintf(stdout, "%s\n", strHex.c_str()); | ||||
▲ Show 20 Lines • Show All 128 Lines • Show Last 20 Lines |