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

Update light client headers: ropsten #6631425 foundation #8798209 #11201

Merged
merged 1 commit into from
Nov 5, 2019

Conversation

Tbaut
Copy link
Contributor

@Tbaut Tbaut commented Oct 25, 2019

Thie updates the light client headers for

How to test:

# parity needs to have an empty light db for the hardcoded headers to kick in
# create a new db base directory
$ mkdir ~/light-test
$ parity --chain ~/your-cloned-directory/parity-ethereum/ethcore/res/ethereum/ropsten.json --light -d ~/light-test

From there you should see something like:

2019-10-25 12:08:02  Starting Parity-Ethereum/v2.7.0-unstable-acf7c48d7-20191023/x86_64-linux-gnu/rustc1.37.0
2019-10-25 12:08:02  Keys path /home/thib/Desktop/light-test/keys/ethereum
2019-10-25 12:08:02  DB path /home/thib/Desktop/light-test/chains_light/ethereum/db/906a34e69aec8c0d
2019-10-25 12:08:02  Running in experimental Light Client mode.
2019-10-25 12:08:02  Inserting hardcoded block #8798209 in chain
2019-10-25 12:08:02  Debug API is not available in light client mode.
2019-10-25 12:08:02  Debug API is not available in light client mode.
2019-10-25 12:08:02  Public node URL: enode://a42f0059e141f7e031f2f4a40ca02fdada0d4ef82deb43cd2c745b5c82a9011e1e5c37e736a9836b5439e5ce1f224e2acd7129c6ddccaef4a7a8b398bc2646d4@192.168.2.137:30303
2019-10-25 12:08:32  Syncing #8798209 0x00a0…0ef7     0.0 hdr/s   3064+    0 Qed   4/50 peers   664 bytes cache 2 MiB queue  RPC:  0 conn,    0 req/s,    0 µs
2019-10-25 12:08:37  Syncing #8805293 0xef9a…e3fd  1416.8 hdr/s   3231+    0 Qed   4/50 peers   4 MiB cache 2 MiB queue  RPC:  0 conn,    0 req/s,    0 µs
2019-10-25 12:08:39  Imported #8808525 0x6fa0…2275 (9.97 Mgas)
2019-10-25 12:08:45  Imported #8808539 0x8f70…2019 (1.38 Mgas)

where the "Inserting hardcoded block #8798209 in chain" is the relevant part.

Check that a block hash match with what your favourite block explorer gives to make sure we're not on a bad fork.

@parity-cla-bot
Copy link

It looks like @Tbaut signed our Contributor License Agreement. 👍

Many thanks,

Parity Technologies CLA Bot

@Tbaut Tbaut marked this pull request as ready for review October 25, 2019 14:05
@Tbaut Tbaut added A0-pleasereview 🤓 Pull request needs code review. B1-patch-beta 🕷🕷 labels Oct 25, 2019
@Tbaut
Copy link
Contributor Author

Tbaut commented Oct 25, 2019

Not sure how compatible it is with the stable version due to the changes in the genesis..

@niklasad1
Copy link
Collaborator

no kovan because of #10374, tried it 2 times in 24h with a full light sync without luck...

I have a fully-sync light-client on kovan, do you want me to export it?

@Tbaut
Copy link
Contributor Author

Tbaut commented Oct 29, 2019

I have a fully-sync light-client on kovan, do you want me to export it?

Sorry @niklasad1 for some reason I just see that now. My problem is not to sync or export headers, the problem is to actually use them, see my comment in the issue: #10374 (comment)

@soc1c soc1c added A8-looksgood 🦄 Pull request is reviewed well. M2-config 📂 Chain specifications and node configurations. and removed A0-pleasereview 🤓 Pull request needs code review. labels Nov 1, 2019
@soc1c soc1c merged commit 8adde60 into master Nov 5, 2019
@soc1c soc1c deleted the tbaut-hardcoded branch November 5, 2019 11:15
soc1c pushed a commit that referenced this pull request Nov 5, 2019
This was referenced Nov 5, 2019
niklasad1 pushed a commit that referenced this pull request Nov 5, 2019
dvdplm added a commit that referenced this pull request Nov 6, 2019
* master: (21 commits)
  ropsten #6631425 foundation #8798209 (#11201)
  Update list of bootnodes for xDai chain (#11236)
  ethcore/res: add mordor testnet configuration (#11200)
  [chain specs]: activate `Istanbul` on mainnet (#11228)
  [builtin]: support `multiple prices and activations` in chain spec (#11039)
  Insert explicit warning into the panic hook (#11225)
  Snapshot restoration overhaul (#11219)
  Fix docker centos build (#11226)
  retry on gitlab system failures (#11222)
  Update bootnodes. (#11203)
  Use provided usd-per-eth value if an endpoint is specified (#11209)
  Use a lock instead of atomics for snapshot Progress (#11197)
  [informant]: `MillisecondDuration` -> `as_millis()` (#11211)
  Step duration map configuration parameter ported from the POA Network fork (#10902)
  Upgrade jsonrpc to latest (#11206)
  [export hardcoded sync]: use debug for `H256` (#11204)
  Pause pruning while snapshotting (#11178)
  Type annotation for next_key() matching of json filter options (#11192)
  Crypto primitives removed from ethkey (#11174)
  Made ecrecover implementation trait public (#11188)
  ...
s3krit pushed a commit that referenced this pull request Nov 11, 2019
* ropsten #6631425 foundation #8798209 (#11201)
* [stable] builtin, istanbul and mordor testnet backports (#11234)
  * ethcore-builtin (#10850)
  * [builtin]: support `multiple prices and activations` in chain spec (#11039)
  * [chain specs]: activate `Istanbul` on mainnet (#11228)
  * ethcore/res: add mordor testnet configuration (#11200)
* Update list of bootnodes for xDai chain (#11236)
* ethcore: remove `test-helper feat` from build (#11047)
* Secret store: fix Instant::now() related race in net_keep_alive (#11155) (#11159)
* [stable]: backport #10691 and #10683 (#11143)
  * Fix compiler warning (that will become an error) (#10683)
  * Refactor Clique stepping (#10691)
* Add Constantinople eips to the dev (instant_seal) config (#10809)
* Add cargo-remote dir to .gitignore (?)
* Insert explicit warning into the panic hook (#11225)
* Fix docker centos build (#11226)
* Update MIX bootnodes. (#11203)
* Use provided usd-per-eth value if an endpoint is specified (#11209)
* Add new line after writing block to hex file. (#10984)
* Type annotation for next_key() matching of json filter options (#11192) (but no `FilterOption` in 2.5 so…)
* Upgrade jsonrpc to latest (#11206)
* [CI] check evmbin build (#11096)
* Correct EIP-712 encoding (#11092)
* [client]: Fix for incorrectly dropped consensus messages (#11086)
* Fix block detail updating (#11015)
* Switching sccache from local to Redis (#10971)
* Made ecrecover implementation trait public (#11188)
* [dependencies]: jsonrpc `14.0.1` (#11183)
* [receipt]: add `sender` & `receiver` to `RichReceipts` (#11179)
* [ethcore/builtin]: do not panic in blake2pricer on short input (#11180)
* util Host: fix a double Read Lock bug in fn Host::session_readable() (#11175)
* ethcore client: fix a double Read Lock bug in fn Client::logs() (#11172)
* Change how RPCs eth_call and eth_estimateGas handle "Pending" (#11127)
* Cleanup stratum a bit (#11161)
* Upgrade to jsonrpc v14 (#11151)
* SecretStore: expose restore_key_public in HTTP API (#10241)
s3krit pushed a commit that referenced this pull request Nov 11, 2019
* [CI] check evmbin build (#11096)
* Correct EIP-712 encoding (#11092)
* [client]: Fix for incorrectly dropped consensus messages (#11082) (#11086)
* Update hardcoded headers (foundation, classic, kovan, xdai, ewc, ...) (#11053)
* Add cargo-remote dir to .gitignore (?)
* Update light client headers: ropsten 6631425 foundation 8798209 (#11201)
* Update list of bootnodes for xDai chain (#11236)
* ethcore/res: add mordor testnet configuration (#11200)
* [chain specs]: activate Istanbul on mainnet (#11228)
* [builtin]: support multiple prices and activations in chain spec (#11039)
* [receipt]: add sender & receiver to RichReceipts (#11179)
* [ethcore/builtin]: do not panic in blake2pricer on short input (#11180)
* Made ecrecover implementation trait public (#11188)
* Fix docker centos build (#11226)
* Update MIX bootnodes. (#11203)
* Insert explicit warning into the panic hook (#11225)
* Use provided usd-per-eth value if an endpoint is specified (#11209)
* Cleanup stratum a bit (#11161)
* Add Constantinople EIPs to the dev (instant_seal) config (#10809) (already backported)
* util Host: fix a double Read Lock bug in fn Host::session_readable() (#11175)
* ethcore client: fix a double Read Lock bug in fn Client::logs() (#11172)
* Type annotation for next_key() matching of json filter options (#11192)
* Upgrade jsonrpc to latest (#11206)
* [dependencies]: jsonrpc 14.0.1 (#11183)
* Upgrade to jsonrpc v14 (#11151)
* Switching sccache from local to Redis (#10971)
* Snapshot restoration overhaul (#11219)
* Add new line after writing block to hex file. (#10984)
* Pause pruning while snapshotting (#11178)
* Change how RPCs eth_call and eth_estimateGas handle "Pending" (#11127)
* Fix block detail updating (#11015)
* Make InstantSeal Instant again #11186
* Filter out some bad ropsten warp snapshots (#11247)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M2-config 📂 Chain specifications and node configurations.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants