Transaction missing in getblocktemplate

So I was testing my pool minutes ago and got this from zcash-cli getblocktemplate:
{
“capabilities”: [
“proposal”
],
“version”: 4,
“previousblockhash”: “00066eb5c54cbbe2d41902bae36492dabe64cec6a3a3178a426e83371052db6b”,
“finalsaplingroothash”: “2bc8347d00e49b643197f358c15a54592477669774f2d8653bca33069f843009”,
“transactions”: [
{
“data”: “0400008085202f8909819ca605f69a13271d83d1cfba9896d36f6c6bac62a4fedaab0ebf95d550cef3040000006a47304402206517a990660703b3d57a373e580e9abba85edb292547da307e04796d48723a7d0220024158f36f31efe5b02261bf48ae388aa5d3e1d7f6323168b896a093e1d60f440121020c0368d04e27eac4a5199f831daec6321496f9d2a1fce662b3a1850b01182058ffffffff9831e15733dafdfe74811eb6cd5942e7f7cf2433c572690099b68b57cbae2ba3050000006a473044022046678fdd5dc2a0ea132906d24e8ac2dad700843d2450ca9b1e57f23365c72d58022073d8104f14e6f9e4cd64e401e9364234fc14549c6fd94fd068bf77e2b54ae4e8012103a77133ab85b6851c385987f5c744ca8d33b0d2a4da8a9563d5996c2fd1f374a3ffffffff8871d6f20fe654f492d9b0591ba7482e558a6f9c07f06c0a47a4c5545b428fc6020000006b483045022100a43ac4e2cfd1e88e33e9b1875e6ee90e14edabaffeaf6d0b2576d9022469a184022058d4f1e319e1f289ef973d61d8d61a4881f7cc920da94e78dc1c567d498549f9012103c73bab94866a800ad43bc3b491d8415278e74ca282f83259e7b1d12adcbaa393ffffffff8871d6f20fe654f492d9b0591ba7482e558a6f9c07f06c0a47a4c5545b428fc6000000006b483045022100d40d6b2f595fcac909d56e74b51d27dc3436bf0da67f4ad19e68a16f8514c4230220231e9aea6f158a29fefb755c2af61b143861590dc3633d4ab823f5061c3cff99012102e095c8cb953092eb2894f0f386b4f82e8a693c8666d2eb010f6cdb4dd074f73effffffff9831e15733dafdfe74811eb6cd5942e7f7cf2433c572690099b68b57cbae2ba3020000006a47304402206461a2f5b038e6a2e3d300daed360c3ecf266cd0aabe7a0efbf8c9ff0591db8502202b0946bb8d42b924e74cf53e57b8fea779cb18df4b9830dd323945828c1a6d89012103106ac6e66c89cbe7ad2959b8b23800238cd9e92510239c5159c9d39c025b1c7effffffff27a79d04c53d2c6188ebe3ffeb7e2519fb021122fadbc84f47bfbbca8fca4504040000006b4830450221008d644bf5408f7579e695f2e51fa2e76e8bb9c05fbe344d08c830adfb36b701d602201f6b2fb56b19f128eb73994a50374f7cc30b542270a76c354cdadb3e333044d1012102eadfe2d072597780a24bfb493008c83ea0852805ea0cd1eba3bcfb8b57d3846effffffff8871d6f20fe654f492d9b0591ba7482e558a6f9c07f06c0a47a4c5545b428fc6030000006a47304402207dbe4f84929cfea858b19354694dcd239187bf944aaeae4da9cdff7bf34dfc2a02201b521daf0358dd4f56c4da3bf0193ef4410139c6eb621f2f0991d5a99f8fed54012103f8ee42b32fa7889068b5872ce1b218c450d07efe1d760c9d6a0d76e4e2baf701ffffffff361b6c82669328021a85784fafdec73dfe5adaadd9c80e30415ac7770981a69f030000006b483045022100eed3ee1009ec28a0ca462dd6baf9482d150288afe4134683c11913dc96aafc0602205127bf1049e0f7b88399e60b81f356558263e370216ff974bff84c233aada837012102346c84c02b18bfa437d66165271105db934b7d593a254d84d8e28f377db0e339ffffffff6bcede1871c7e10af8e77411df9d669c71e060371a03dd7f282906174c75e5b8030000006a4730440220247e6ef6e8dc6c92ce919d63890a4bb3683df6338af64d1e1083bc4f931ce9a602206435f1ece4f59d8f7d0bba3fdb4597da26e7e199a83555fe0334852a4a40938f0121032995580796bca0f056bfbfbe8626ce325526c1fde9836fe60cfa12b88d3507a4ffffffff1040420f00000000001976a914ae9703b698e1387e8f4f86f958859c3db2dd500a88ac40420f00000000001976a914ae9703b698e1387e8f4f86f958859c3db2dd500a88ac40420f00000000001976a914ae9703b698e1387e8f4f86f958859c3db2dd500a88ac40420f00000000001976a914d6d3fea8133155be0ff3c52c6eec5a2aabba53f288ac40420f00000000001976a914ae9703b698e1387e8f4f86f958859c3db2dd500a88ac40420f00000000001976a914d6d3fea8133155be0ff3c52c6eec5a2aabba53f288ac40420f00000000001976a914ae9703b698e1387e8f4f86f958859c3db2dd500a88ac40420f00000000001976a914ae9703b698e1387e8f4f86f958859c3db2dd500a88ac40420f00000000001976a914ae9703b698e1387e8f4f86f958859c3db2dd500a88ac40420f00000000001976a914d6d3fea8133155be0ff3c52c6eec5a2aabba53f288ac40420f00000000001976a914d6d3fea8133155be0ff3c52c6eec5a2aabba53f288ac40420f00000000001976a914ae9703b698e1387e8f4f86f958859c3db2dd500a88ac40420f00000000001976a914d6d3fea8133155be0ff3c52c6eec5a2aabba53f288ac40420f00000000001976a914ae9703b698e1387e8f4f86f958859c3db2dd500a88ac40420f00000000001976a914d6d3fea8133155be0ff3c52c6eec5a2aabba53f288ac6a530100000000001976a914a1efb50a551984370c510a1a960101fb518bb23188ac00000000000000000000000000000000000000”,
“hash”: “d99421cf5fe4990ea06bd4851581ff9291935b5da6fafcbd0c7bb74e27b99cab”,
“depends”: [
],
“fee”: 9310,
“sigops”: 16
}
],
“coinbasetxn”: {
“data”: “0400008085202f89010000000000000000000000000000000000000000000000000000000000000000ffffffff05035a780500ffffffff025eee9a3b000000001976a9144db7967426715287bc432b4e3f13d75cfc1deddc88ac80b2e60e0000000017a91435943aa429273fe3f78d50a0f24c09e4f7184bde8700000000000000000000000000000000000000”,
“hash”: “b3489a33907657744ae6a19ffb0e6ab0681dee066d4f2a7bc9ebd5bdad457a6e”,
“depends”: [
],
“fee”: -9310,
“sigops”: 1,
“foundersreward”: 250000000,
“required”: true
},
“longpollid”: “00066eb5c54cbbe2d41902bae36492dabe64cec6a3a3178a426e83371052db6b15449”,
“target”: “001d963f00000000000000000000000000000000000000000000000000000000”,
“mintime”: 1543842189,
“mutable”: [
“time”,
“transactions”,
“prevblock”
],
“noncerange”: “00000000ffffffff”,
“sigoplimit”: 20000,
“sizelimit”: 2000000,
“curtime”: 1543842328,
“bits”: “1f1d963f”,
“height”: 358490
}

and got block rejected, went to check on explorer: https://testnet.zcha.in/blocks/001b82946e008fa21e68dcdcc24a55d378f1e3c5117acb360f05e2a207512a5b

there seem to be 2 transactions instead of 1 (apart from coinbase) stated by gbt, how come? Do I need to specify some capabilities for gbt?

1 Like

Just to clarify, this isn’t your block since your block was rejected?

It could be that the miner of that block had one more txn in its mempool.

Yes, this isn’t my block. Another thing that I’ve discovered later is that we had Merkle Root in wrong byte order when there were more txes than 1, so it wouldn’t get accepted anyways, but I wanted to know more about this tx difference. All in all, this is nothing extraordinary then, that different nodes’ ‘getblocktemplate’ returns different results?

Sorry for the confusion.

Per the help, getblocktemplate returns data about blocks, whether already in the chain or being prepared for submission for mining. In the case of getting a block ready for submission, the call will also be different depending on the transactions in the mempool.

2 Likes