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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user