Browse Source

GBT: Add informational founders' reward value to coinbasetxn

pull/4/head
Jack Grigg 8 years ago
parent
commit
89aa746ca1
No known key found for this signature in database GPG Key ID: 6A6914DAFBEA00DA
  1. 5
      src/rpcmining.cpp

5
src/rpcmining.cpp

@ -594,6 +594,11 @@ Value getblocktemplate(const Array& params, bool fHelp)
entry.push_back(Pair("sigops", pblocktemplate->vTxSigOps[index_in_template]));
if (tx.IsCoinBase()) {
// Show founders' reward if it is required
if (pblock->vtx[0].vout.size() > 1) {
// Correct this if GetBlockTemplate changes the order
entry.push_back(Pair("foundersreward", (int64_t)tx.vout[1].nValue));
}
entry.push_back(Pair("required", true));
txCoinbase = entry;
} else {

Loading…
Cancel
Save