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

Commit

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

* Use U256::max_value() instead

* Fix again

* Also change initial transaction gas
  • Loading branch information
tomaka authored and andresilva committed Jun 4, 2018
1 parent 39b9f1e commit e8357e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethcore/src/spec/spec.rs
Expand Up @@ -709,7 +709,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 @@ -718,7 +718,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 e8357e0

Please sign in to comment.