Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/mining.cpp
Show First 20 Lines • Show All 622 Lines • ▼ Show 20 Lines | for (const auto &it : pblock->vtx) { | ||||
index_in_template++; | index_in_template++; | ||||
continue; | continue; | ||||
} | } | ||||
UniValue entry(UniValue::VOBJ); | UniValue entry(UniValue::VOBJ); | ||||
entry.pushKV("data", EncodeHexTx(tx)); | entry.pushKV("data", EncodeHexTx(tx)); | ||||
entry.pushKV("txid", txId.GetHex()); | entry.pushKV("txid", txId.GetHex()); | ||||
entry.pushKV("hash", tx.GetHash().GetHex()); | entry.pushKV("hash", tx.GetHash().GetHex()); | ||||
entry.pushKV("fee", | entry.pushKV("fee", pblocktemplate->entries[index_in_template].txFee / | ||||
pblocktemplate->entries[index_in_template].fees / SATOSHI); | SATOSHI); | ||||
int64_t nTxSigOps = | int64_t nTxSigOps = pblocktemplate->entries[index_in_template].txSigOps; | ||||
pblocktemplate->entries[index_in_template].sigOpCount; | |||||
entry.pushKV("sigops", nTxSigOps); | entry.pushKV("sigops", nTxSigOps); | ||||
transactions.push_back(entry); | transactions.push_back(entry); | ||||
index_in_template++; | index_in_template++; | ||||
} | } | ||||
UniValue aux(UniValue::VOBJ); | UniValue aux(UniValue::VOBJ); | ||||
aux.pushKV("flags", HexStr(COINBASE_FLAGS.begin(), COINBASE_FLAGS.end())); | aux.pushKV("flags", HexStr(COINBASE_FLAGS.begin(), COINBASE_FLAGS.end())); | ||||
▲ Show 20 Lines • Show All 174 Lines • Show Last 20 Lines |