Implement the mining software

This commit is contained in:
2024-03-24 13:09:29 +01:00
parent 2f3216a0c4
commit 825b07bc11
7 changed files with 608 additions and 7 deletions

View File

@@ -158,7 +158,7 @@ A "block transfer" message is sent back in response to a "block request" message
| protocol version = 0 (BE) | 2 |
| capable version = 0 (BE) | 2 |
| type = 7 (BE) | 1 |
| padding (nullbytes) | 220 |
| padding (nullbytes) | 252 |
The node should answer to a "Mining task request" with a "Mining task response"
@@ -173,6 +173,7 @@ The node should answer to a "Mining task request" with a "Mining task response"
| previous hash | 32 |
| timestamp (unix time in seconds, BE) | 8 |
| difficulty sum (BE) | 32 |
| threshold | 32 |
The node tells the miner "timestamp", "previous hash", "difficulty sum" and "transaction" for the new block.