Reorder field in the block

Miners should choose a transaction from the network based on its reward,
not as part of the mining variability.
That's why it's a bad idea to place the transaction as last block element.

Reorder the fields to make less room for harmful mining optimization.
This commit is contained in:
2024-03-17 09:54:00 +01:00
parent f41710c3dd
commit e1fe8b0958
3 changed files with 30 additions and 28 deletions

View File

@@ -168,10 +168,10 @@ The node should answer to a "Mining task request" with a "Mining task response"
| protocol version = 0 (BE) | 2 |
| capable version = 0 (BE) | 2 |
| type = 8 (BE) | 1 |
| timestamp (unix time in seconds, BE) | 8 |
| previous hash | 32 |
| difficulty sum (BE) | 32 |
| transaction (optional) | 148 |
| previous hash | 32 |
| timestamp (unix time in seconds, BE) | 8 |
| difficulty sum (BE) | 32 |
The node tells the miner "timestamp", "previous hash", "difficulty sum" and "transaction" for the new block.