Fix light sync with initial validator-set contract (#8528)

* Fix #8468

* Use U256::max_value() instead

* Fix again

* Also change initial transaction gas
This commit is contained in:
Pierre Krieger 2018-05-15 15:35:52 +02:00 committed by Afri Schoedon
parent e4614e49ae
commit 0c4d2fbc70
1 changed files with 2 additions and 2 deletions

View File

@ -783,7 +783,7 @@ impl Spec {
author: *genesis.author(), author: *genesis.author(),
timestamp: genesis.timestamp(), timestamp: genesis.timestamp(),
difficulty: *genesis.difficulty(), difficulty: *genesis.difficulty(),
gas_limit: *genesis.gas_limit(), gas_limit: U256::max_value(),
last_hashes: Arc::new(Vec::new()), last_hashes: Arc::new(Vec::new()),
gas_used: 0.into(), gas_used: 0.into(),
}; };
@ -792,7 +792,7 @@ impl Spec {
let tx = Transaction { let tx = Transaction {
nonce: self.engine.account_start_nonce(0), nonce: self.engine.account_start_nonce(0),
action: Action::Call(a), action: Action::Call(a),
gas: U256::from(50_000_000), // TODO: share with client. gas: U256::max_value(),
gas_price: U256::default(), gas_price: U256::default(),
value: U256::default(), value: U256::default(),
data: d, data: d,