From 8bcd10825af0e62768e919c9bdf80d5212c9d08e Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Sat, 21 Nov 2015 14:24:31 +0100 Subject: [PATCH 1/2] Update eip-2.mediawiki --- EIPS/eip-2.mediawiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EIPS/eip-2.mediawiki b/EIPS/eip-2.mediawiki index 7f504d33..3a552a10 100644 --- a/EIPS/eip-2.mediawiki +++ b/EIPS/eip-2.mediawiki @@ -12,7 +12,7 @@ If block.number >= HOMESTEAD_FORK_BLKNUM (suggestion: 666000 on livenet and Morden, 0 on future testnets), do the following: # The gas cost ''for creating contracts via a transaction'' is increased from 21000 to 53000, ie. if you send a transaction and the to address is the empty string, the initial gas subtracted is 53000 plus the gas cost of the tx data, rather than 21000 as is currently the case. Contract creation from a contract using the CREATE opcode is unaffected. -# Transactions with s-value greater than secp256k1n/2 are now considered invalid. +# All eliptic-curve recover operations on a signature whose s-value is greater than secp256k1n/2 are now considered invalid. # If contract creation does not have enough gas to pay for the final gas fee for adding the contract code to the state, the contract creation fails (ie. goes out-of-gas) rather than leaving an empty contract. # Change the difficulty adjustment algorithm from the current formula: block_diff = parent_diff + parent_diff // 2048 * (1 if block_timestamp - parent_timestamp < 13 else -1) to block_diff = parent_diff + parent_diff // 2048 * max(1 - 2 * (block_timestamp - parent_timestamp) // 16, -99), where // is the integer division operator, eg. 6 // 2 = 3, 7 // 2 = 3, 8 // 2 = 4 From e224eead81fe803c91651f0f5e1f74d6334b5dc0 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Sat, 21 Nov 2015 15:14:49 +0100 Subject: [PATCH 2/2] Update eip-2.mediawiki --- EIPS/eip-2.mediawiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EIPS/eip-2.mediawiki b/EIPS/eip-2.mediawiki index 3a552a10..4ef7c12e 100644 --- a/EIPS/eip-2.mediawiki +++ b/EIPS/eip-2.mediawiki @@ -14,7 +14,7 @@ If block.number >= HOMESTEAD_FORK_BLKNUM (suggestion: 666000 on liv # The gas cost ''for creating contracts via a transaction'' is increased from 21000 to 53000, ie. if you send a transaction and the to address is the empty string, the initial gas subtracted is 53000 plus the gas cost of the tx data, rather than 21000 as is currently the case. Contract creation from a contract using the CREATE opcode is unaffected. # All eliptic-curve recover operations on a signature whose s-value is greater than secp256k1n/2 are now considered invalid. # If contract creation does not have enough gas to pay for the final gas fee for adding the contract code to the state, the contract creation fails (ie. goes out-of-gas) rather than leaving an empty contract. -# Change the difficulty adjustment algorithm from the current formula: block_diff = parent_diff + parent_diff // 2048 * (1 if block_timestamp - parent_timestamp < 13 else -1) to block_diff = parent_diff + parent_diff // 2048 * max(1 - 2 * (block_timestamp - parent_timestamp) // 16, -99), where // is the integer division operator, eg. 6 // 2 = 3, 7 // 2 = 3, 8 // 2 = 4 +# Change the difficulty adjustment algorithm from the current formula: block_diff = parent_diff + parent_diff // 2048 * (1 if block_timestamp - parent_timestamp < 13 else -1) to block_diff = parent_diff + parent_diff // 2048 * max(1 - (block_timestamp - parent_timestamp) // 10, -99), where // is the integer division operator, eg. 6 // 2 = 3, 7 // 2 = 3, 8 // 2 = 4 ==Rationale==