From 96d28c0dbd4c186fa69fd44854a8fa39427bee60 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Wed, 2 May 2018 14:31:19 +0200 Subject: [PATCH 1/4] Fix #8468 --- ethcore/src/spec/spec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethcore/src/spec/spec.rs b/ethcore/src/spec/spec.rs index 156ab8f15a8..c458a067d4f 100644 --- a/ethcore/src/spec/spec.rs +++ b/ethcore/src/spec/spec.rs @@ -785,7 +785,7 @@ impl Spec { let tx = Transaction { nonce: self.engine.account_start_nonce(0), action: Action::Call(a), - gas: U256::from(50_000_000), // TODO: share with client. + gas: U256::default(), gas_price: U256::default(), value: U256::default(), data: d, From 1eec257e6cab8f0baa861fc106228e151b9bc3c1 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Mon, 14 May 2018 15:43:27 +0200 Subject: [PATCH 2/4] Use U256::max_value() instead --- ethcore/src/spec/spec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethcore/src/spec/spec.rs b/ethcore/src/spec/spec.rs index c458a067d4f..ab699ab95b6 100644 --- a/ethcore/src/spec/spec.rs +++ b/ethcore/src/spec/spec.rs @@ -785,7 +785,7 @@ impl Spec { let tx = Transaction { nonce: self.engine.account_start_nonce(0), action: Action::Call(a), - gas: U256::default(), + gas: U256::max_value(), gas_price: U256::default(), value: U256::default(), data: d, From 46a34289d78eef436405e9f133f95e9f529c6e30 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Mon, 14 May 2018 17:10:52 +0200 Subject: [PATCH 3/4] Fix again --- ethcore/src/spec/spec.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethcore/src/spec/spec.rs b/ethcore/src/spec/spec.rs index ab699ab95b6..5a9203b3ec3 100644 --- a/ethcore/src/spec/spec.rs +++ b/ethcore/src/spec/spec.rs @@ -776,7 +776,7 @@ impl Spec { author: *genesis.author(), timestamp: genesis.timestamp(), difficulty: *genesis.difficulty(), - gas_limit: *genesis.gas_limit(), + gas_limit: U256::max_value(), last_hashes: Arc::new(Vec::new()), gas_used: 0.into(), }; @@ -785,7 +785,7 @@ impl Spec { let tx = Transaction { nonce: self.engine.account_start_nonce(0), action: Action::Call(a), - gas: U256::max_value(), + gas: U256::from(50_000_000), // TODO: share with client. gas_price: U256::default(), value: U256::default(), data: d, From 414a750b94076221dd8843d8f3d8e942ba8422d2 Mon Sep 17 00:00:00 2001 From: Pierre Krieger Date: Mon, 14 May 2018 17:39:23 +0200 Subject: [PATCH 4/4] Also change initial transaction gas --- ethcore/src/spec/spec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethcore/src/spec/spec.rs b/ethcore/src/spec/spec.rs index 5a9203b3ec3..23a2727d914 100644 --- a/ethcore/src/spec/spec.rs +++ b/ethcore/src/spec/spec.rs @@ -785,7 +785,7 @@ impl Spec { let tx = Transaction { nonce: self.engine.account_start_nonce(0), action: Action::Call(a), - gas: U256::from(50_000_000), // TODO: share with client. + gas: U256::max_value(), gas_price: U256::default(), value: U256::default(), data: d,