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

Commit e8357e0

Browse files
tomakaandresilva
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 39b9f1e commit e8357e0

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
@@ -709,7 +709,7 @@ impl Spec {
709709
author: *genesis.author(),
710710
timestamp: genesis.timestamp(),
711711
difficulty: *genesis.difficulty(),
712-
gas_limit: *genesis.gas_limit(),
712+
gas_limit: U256::max_value(),
713713
last_hashes: Arc::new(Vec::new()),
714714
gas_used: 0.into(),
715715
};
@@ -718,7 +718,7 @@ impl Spec {
718718
let tx = Transaction {
719719
nonce: self.engine.account_start_nonce(0),
720720
action: Action::Call(a),
721-
gas: U256::from(50_000_000), // TODO: share with client.
721+
gas: U256::max_value(),
722722
gas_price: U256::default(),
723723
value: U256::default(),
724724
data: d,

0 commit comments

Comments
 (0)