From 7a946e08b68f54d54ff1311ac742c73985db3b82 Mon Sep 17 00:00:00 2001 From: 5chdn <5chdn@users.noreply.github.com> Date: Fri, 25 Aug 2017 09:25:59 +0200 Subject: [PATCH] Avoid negative block numbers, ref #649. --- EIPS/eip-649.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EIPS/eip-649.md b/EIPS/eip-649.md index d4022e4b..8635e79a 100644 --- a/EIPS/eip-649.md +++ b/EIPS/eip-649.md @@ -22,7 +22,7 @@ The Casper development and switch to proof-of-stake is delayed, the Ethash proof #### Relax Difficulty with Fake Block Number For the purposes of `calc_difficulty`, simply replace the use of `block.number`, as used in the exponential ice age component, with the formula: - fake_block_number = min(0, block.number - 3_000_000) if block.number >= BYZANTIUM_FORK_BLKNUM else block.number + fake_block_number = max(0, block.number - 3_000_000) if block.number >= BYZANTIUM_FORK_BLKNUM else block.number #### Adjust Block, Uncle, and Nephew rewards To add an issuance reduction, adjust the block reward to `new_block_reward`, where