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

Conversation

@svyatonik
Copy link
Contributor

@svyatonik svyatonik commented Jun 26, 2018

No description provided.

@svyatonik svyatonik added A0-please_review Pull request needs code review. A1-onice labels Jun 26, 2018
@svyatonik svyatonik force-pushed the light_storage_proof branch from 161b953 to c6ebffb Compare July 30, 2018 08:05
@ddorgan
Copy link
Member

ddorgan commented Aug 1, 2018

[clabot:check]

@parity-cla-bot
Copy link

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

Many thanks,

Parity Technologies CLA Bot

Copy link
Contributor

@pepyakin pepyakin left a comment

Choose a reason for hiding this comment

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

Great!

let remote_block_id = BlockId::Number(0);
let remote_block_hash = remote_client.block_hash(0).unwrap().unwrap();
let mut remote_block_header = remote_client.header(&remote_block_id).unwrap().unwrap();
remote_block_header.state_root = remote_client.state_at(&remote_block_id).unwrap().storage_root(::std::iter::empty()).0.into();
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we wrap this line?

let result = proving_backend.storage(key).map_err(|e| Box::new(e) as Box<Error>)?;
Ok((result, proving_backend.extract_proof()))
}
/// Check storage read proof, generated by `prove` call.
Copy link
Contributor

Choose a reason for hiding this comment

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

do you mean "generated by prove_read call"? : )

@pepyakin pepyakin added A8-looksgood and removed A0-please_review Pull request needs code review. labels Aug 8, 2018
request: &RemoteReadRequest<Block::Hash>,
remote_proof: Vec<Vec<u8>>
) -> ClientResult<Option<Vec<u8>>> {
let local_header = self.blockchain.header(BlockId::Hash(request.block))?;
Copy link
Contributor

Choose a reason for hiding this comment

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

since this happens well beyond the point where the storage request is actually issued, could the header be pruned if it takes a long time to serve the request or if the header was on the verge of being pruned when the request was issued?

@svyatonik svyatonik added A0-please_review Pull request needs code review. and removed A5-grumble labels Aug 9, 2018
let result = proving_backend.storage(key).map_err(|e| Box::new(e) as Box<Error>)?;
Ok((result, proving_backend.extract_proof()))
}
/// Check storage read proof, generated by `prove_read` call.
Copy link
Member

Choose a reason for hiding this comment

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

illegal leading space

@gavofyork gavofyork merged commit 8cae996 into master Aug 12, 2018
@gavofyork gavofyork deleted the light_storage_proof branch August 12, 2018 10:48
dvdplm added a commit that referenced this pull request Aug 14, 2018
* master:
  Less verbosity (#546)
  Fetching storage proofs by light client (#252)
  Gitlab CI build file for linux. (#552)
  Vote out offline authorities (#524)
  fix block body fetch for availability pruning (#539)
  Continue sync after ancestry search (#538)
  Docs Typo Fixes (#534)
  don't wait for all futures to resolve before shutdown (#536)
  Update libp2p and some log (#532)
  Mh public key for telemetry (#526)
  Td bps (#527)
  Reserved peers CLI flag (#528)
pepyakin pushed a commit that referenced this pull request Aug 24, 2018
* storage proofs

* fixed grumbles

* Update lib.rs
JoshOrndorff pushed a commit to moonbeam-foundation/substrate that referenced this pull request Apr 21, 2021
liuchengxu pushed a commit to autonomys/substrate that referenced this pull request Jun 3, 2022
…ossipsub

Subspace networking (gossipsub)
helin6 pushed a commit to boolnetwork/substrate that referenced this pull request Jul 25, 2023
* Move tests to module in own file

* Add test-node-proc crate

* Move test node to main lib, fix compilation errors

* Fmt

* Attempted port scanning

* Use global static port to allocate open ports

* Register missing type sizes

* Fix port scanning and balances test

* Don't wait for blocks on insert_jey test

* Fmt

* Remove unused dependencies

* Download v3.0.0 rust binary

* Move substrate bin to home dir

* Add test instructions to README

* Figure out the $PATH

* Remove path echo

* Add check for missing substrate binary on the PATH

* @niklasad1 review: don't include client feature for tests
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.

7 participants