message: Added coinbase_payload field to getblocktemplate output
diff: @@ -454,6 +454,7 @@ UniValue getblocktemplate(const JSONRPCRequest& request)
  " },\n"
  " \"znode_payments_started\" : true|false, (boolean) true, if znode payments started\n"
  " \"znode_payments_enforced\" : true|false, (boolean) true, if znode payments are enforced\n"
  + " \"coinbase_payload\" : \"xxxxxxxx\" (string) coinbase transaction payload data encoded in hexadecimal\n"
  "}\n"
  "\nExamples:\n"
  @@ -809,6 +810,10 @@ UniValue getblocktemplate(const JSONRPCRequest& request)
  result.push_back(Pair("znode_payments_started", pindexPrev->nHeight + 1 > Params().GetConsensus().nZnodePaymentsStartBlock));
  }
  + if (pindexPrev->nHeight+1 >= Params().GetConsensus().DIP0003Height) {
  + result.push_back(Pair("coinbase_payload", HexStr(pblock->vtx[0]->vExtraPayload)));
  + }
  +
  if (!pblocktemplate->vchCoinbaseCommitment.empty() && fSupportsSegwit) {
  result.push_back(Pair("default_witness_commitment", HexStr(pblocktemplate->vchCoinbaseCommitment.begin(), pblocktemplate->vchCoinbaseCommitment.end())));
  }
  