Skip to content

Commit

Permalink
Fix light sync with initial validator-set contract (openethereum#8528)
Browse files Browse the repository at this point in the history
* Fix openethereum#8468

* Use U256::max_value() instead

* Fix again

* Also change initial transaction gas
  • Loading branch information
tomaka authored and VladLupashevskyi committed May 23, 2018
1 parent 9bceb6d commit ea74e51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethcore/src/spec/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,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(),
};
Expand All @@ -792,7 +792,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,
Expand Down

0 comments on commit ea74e51

Please sign in to comment.