I have been investigating:
https://github.com/gjhiggins/xpmminer/commits/datacoinLooks like I'm probably wrong about the details of the block construction issue (i.e. the significance of the Datacoin-specific
txdata tx field) -
getblocktemplate would seem to accrue all the txdata into a single block of hex for the miner to use.
An example from testnet:
11:11:54

getblocktemplate
11:11:54

{
"capabilities": [
"proposal"
],
"version": 536870912,
"rules": [
],
"vbavailable": {
},
"vbrequired": 0,
"previousblockhash": "50c6dd2f244ab630a2c5934b095b59e11e2c6bac586038fb9ca453dadbc2535a",
"transactions": [
{
"data": "01000000037ba19015a45d2692ecb02efc5cca388fcf1cccd87119c475c30388e912d0aef9000000004847304402200396531a77bd87b3e51211476a7642e9acdafc0b1b056f7247b976f2e303d12e02201d4921e8176f0e220c8620257b301f0cd58ec31d2652e78317e80ed2269ecda501ffffffffb416ddf449daf48110a50c4aa1313625e026fa4a727bd8cc6eefb570d4c06fcd000000006a473044022032ca577e9342049ec6b4e0df858c79da3fd076ed730636148bbc83d5c63611cb02205ea4279e49d4f1e7f100731faab7883033fe2fb74102b98369ef2144fc4848df0121021d325dd3e54ccc5d7c61848ad48124581e12b942739026d48259acfda05f2ccbffffffffc7da48c737cfa4f90f9403e61c03c2114e05eeaf21dff3179f559e0ed7701913000000004847304402206a2a88814063b593f705409771a75dbfedcb814e4dd10907df21ea83a8e8bb22022046019aa1c7d576e9b378041d7e8b675695e3b34ccf5826481309e7050f40021001ffffffff0200a6a63a000000001976a914b94ea4f4d77b11c7cd1d5dc761c6dc748c8f453388ac00e40b54020000001976a9148947c8c9899715177d33a3dff1c9a9744df36f3188acb0f1020000",
"txid": "2640a60e9f078770384533d3f6c9b212b559dd0ef942763e2d3169e0c69a26b0",
"hash": "2640a60e9f078770384533d3f6c9b212b559dd0ef942763e2d3169e0c69a26b0",
"depends": [
],
"fee": 5000000,
"sigops": 2,
"weight": 1808
}
],
"coinbaseaux": {
"flags": ""
},
"coinbasevalue": 3899000000,
"longpollid": "50c6dd2f244ab630a2c5934b095b59e11e2c6bac586038fb9ca453dadbc2535a366",
"target": "00000000000000000000000000000000000000000000000000000010a64f0000",
"mintime": 1624010599,
"mutable": [
"time",
"transactions",
"prevblock"
],
"noncerange": "00000000ffffffff",
"sigoplimit": 20000,
"sizelimit": 1048576,
"curtime": 1624011114,
"bits": "0510a64f",
"height": 192945
}
Cheers
Graham