I am looking at the specific block at height 680175.
At the time when the block was not mined yet, I received the block template via bitcoin-cli getblocktemplate '{"rules": ["segwit"]}'
with 1451 transactions:
{
"capabilities": [
"proposal"
],
"version": 536870912,
"rules": [
"csv",
"!segwit"
],
"vbavailable": {},
"vbrequired": 0,
"previousblockhash": "00000000000000000008465bf3145011298dddb04f026e077d8deb5b9ac5cf7f",
"transactions": [
{
"data": "..",
"txid": "f0fcac28b1dec7b8e67f73229052639c58f7f175bdb87ea068f499a4728bb35d",
"hash": "2a4aa6c2b5a6bee592e3690a843ee63b2598315da01954c05c4c0aa77d57af34",
"depends": [],
"fee": 160000,
"sigops": 5,
"weight": 953
},
..,
{
"data": "..",
"txid": "e0ae05fa82edb0dee7e9d11ca9471bf3ee1a90e19ac8abf1013511338613b814",
"hash": "e0ae05fa82edb0dee7e9d11ca9471bf3ee1a90e19ac8abf1013511338613b814",
"depends": [],
"fee": 103950,
"sigops": 4,
"weight": 1388
},
..,
{
"data": "..",
"txid": "8d55bd874acea1fbc03b98e82d585c39021be083645dde83e8306171e32258d5",
"hash": "8d55bd874acea1fbc03b98e82d585c39021be083645dde83e8306171e32258d5",
"depends": [],
"fee": 16425,
"sigops": 8,
"weight": 904
}
],
"coinbaseaux": {},
"coinbasevalue": 745954254,
"longpollid": "00000000000000000008465bf3145011298dddb04f026e077d8deb5b9ac5cf7f3670",
"target": "0000000000000000000bef930000000000000000000000000000000000000000",
"mintime": 1619115663,
"mutable": [
"time",
"transactions",
"prevblock"
],
"noncerange": "00000000ffffffff",
"sigoplimit": 80000,
"sizelimit": 4000000,
"weightlimit": 4000000,
"curtime": 1619117253,
"bits": "170bef93",
"height": 680175,
"default_witness_commitment": "6a24aa21a9ed82637c9b63e2165105a672c4f6edcfa0187d961843a8d2b9c7a6bceeda109a65"
}
When comparing the block template to the mined block, there are some differences:
- The version of the mined block is
0x2fffe000
instead of536870912
. - Only 194 transactions from the block template are in the mined block, e.g. f0fcac28b1dec7b8e67f73229052639c58f7f175bdb87ea068f499a4728bb35d. The other 1257 transactions are missing.
- The transaction 8d55bd874acea1fbc03b98e82d585c39021be083645dde83e8306171e32258d5 was mined in a later block.
- The transaction e0ae05fa82edb0dee7e9d11ca9471bf3ee1a90e19ac8abf1013511338613b814 was not mined at all.
Does anyone know how these differences can be explained?
What would have happened if a miner found a block hash for the received block template and submitted it? Would the mined block then have a different version and the missing transactions (including the transaction that was not even mined yet)?