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

Conversation

@svyatonik
Copy link
Contributor

It has been a while since I last started light client && there are now 2 issues:

  1. changes trie config has been read in the Client::new, before network has been started => there were no peers to ask for the state;
  2. light block import do not update GENESIS_HASH meta => updated read_meta fails when light client with non-empty db is started.

cc @amaurymartiny

@svyatonik svyatonik added A0-please_review Pull request needs code review. M4-core labels Nov 16, 2018
@gavofyork gavofyork removed the A0-please_review Pull request needs code review. label Nov 17, 2018
transaction.put(columns::HEADER, &lookup_key, &header.encode());
transaction.put(columns::HASH_LOOKUP, hash.as_ref(), &lookup_key);

if number == Zero::zero() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

number.is_zero() should be fine (and possibly faster)

@svyatonik svyatonik added A0-please_review Pull request needs code review. and removed A6-mustntgrumble labels Nov 17, 2018
@gavofyork
Copy link
Member

There's no need to rebuild the runtime as nothing there was changed. I would generally avoid doing so as it just goes into the PR and creates unnecessary merge conflicts.

@gavofyork gavofyork added A7-looksgoodcantmerge and removed A0-please_review Pull request needs code review. labels Nov 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants