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

Make light client backend only work with locally available data #3538

Merged
merged 4 commits into from
Sep 12, 2019

Conversation

svyatonik
Copy link
Contributor

Quote from #3480 (see description for details):

So the general idea is to:

  1. ...
  2. update light Client backend to work only with local database && fail with NotAvailableOnLightClient if it requires some data from remote node. Initially I thought about slightly different approach (which is implemented now), where Client itself would fallback to fetch-from-remote if anything isn't available locally. But this won't work from within executor threads. This will be fixed in follow-up PRs - it is going to be a quite large change, though mostly removing lines/code dependencies, etc

@svyatonik svyatonik added A0-please_review Pull request needs code review. M4-core labels Sep 3, 2019
@gavofyork gavofyork added A3-needsresolving and removed A0-please_review Pull request needs code review. labels Sep 7, 2019
@svyatonik svyatonik added A0-please_review Pull request needs code review. and removed A3-needsresolving labels Sep 9, 2019
@gavofyork gavofyork added A3-needsresolving and removed A0-please_review Pull request needs code review. labels Sep 10, 2019
@svyatonik svyatonik added A0-please_review Pull request needs code review. and removed A3-needsresolving labels Sep 11, 2019
@svyatonik svyatonik closed this Sep 12, 2019
@svyatonik svyatonik reopened this Sep 12, 2019
@svyatonik
Copy link
Contributor Author

Just to be clear: this PR breaks transaction pool on light client => there'll be a follow-up PR that should fix submitting transactions using light client.

But probably better not to mix everything in a single PR, just because there going to be more fix-light-client PRs anyway:

  1. afaiu, breaking BABE-for-light is WIP => we'll need a future PR that will fix BABE-in-light;
  2. I haven't still submitted PR fox fixing subscriptions in light RPCs (storage + runtime version) after they were broken by Update to libp2p 0.12 #3408 . Forgot about that :/

@gavofyork gavofyork merged commit 8426cf1 into master Sep 12, 2019
@gavofyork gavofyork deleted the continue_separatin_fetcher_with_light_backend branch September 12, 2019 15:13
Demi-Marie pushed a commit to Demi-Marie/substrate that referenced this pull request Sep 17, 2019
…tytech#3538)

* removing fetcher dependency from light backend

* fix compilation
en pushed a commit to en/substrate that referenced this pull request Sep 24, 2019
…tytech#3538)

* removing fetcher dependency from light backend

* fix compilation
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants