Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit 0c4d2fb

Browse files
tomaka5chdn
authored andcommitted
Fix light sync with initial validator-set contract (#8528)
* Fix #8468 * Use U256::max_value() instead * Fix again * Also change initial transaction gas
1 parent e4614e4 commit 0c4d2fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ethcore/src/spec/spec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ impl Spec {
783783
author: *genesis.author(),
784784
timestamp: genesis.timestamp(),
785785
difficulty: *genesis.difficulty(),
786-
gas_limit: *genesis.gas_limit(),
786+
gas_limit: U256::max_value(),
787787
last_hashes: Arc::new(Vec::new()),
788788
gas_used: 0.into(),
789789
};
@@ -792,7 +792,7 @@ impl Spec {
792792
let tx = Transaction {
793793
nonce: self.engine.account_start_nonce(0),
794794
action: Action::Call(a),
795-
gas: U256::from(50_000_000), // TODO: share with client.
795+
gas: U256::max_value(),
796796
gas_price: U256::default(),
797797
value: U256::default(),
798798
data: d,

0 commit comments

Comments
 (0)