Send the second last block difficulty sum

This counters a possible attack where a miner could try to replace an
already mined block with a different one that appears to be mined just
one second before.
This commit is contained in:
2024-02-25 00:55:47 +01:00
parent bd51b5efff
commit c4942dd716
2 changed files with 3 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ block_difficulty = max(calculated_difficulty, 2^28)
Note the max() operation: A difficulty can never be lower than 2^28 (=268435456). This is a strict lower bound.
For the first block, the "difficulty sum" value is set to 2^28.
For the first block, the "difficulty sum" value is set to 2^29.
Early in the chain, when less than 11 blocks have been mined, we make assumptions for blocks "before" the first block:
- Each of these "before" blocks had a block difficulty of exactly 2^28