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

On demand LES request #4036

Merged
merged 21 commits into from
Jan 13, 2017
Merged

On demand LES request #4036

merged 21 commits into from
Jan 13, 2017

Conversation

rphmeier
Copy link
Contributor

@rphmeier rphmeier commented Jan 4, 2017

Convenience service for RPC to request chain data via LES on-demand.
As this is futures-based, the actual RPC implementation is blocked on #3859

Future work:

  • DRY up peer search after Common LES PeerSearch utility #3987
  • Account storage (although an all-or-nothing approach for storage might be reasonable as well)
  • Cache responses, configurable via CLI.

@rphmeier rphmeier added A1-onice 🌨 Pull request is reviewed well, but should not yet be merged. A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. M4-core ⛓ Core client code / Rust. labels Jan 4, 2017
/// Basic account data.
// TODO: [rob] unify with similar struct in `snapshot`.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Account {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will remove after #4021

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 86.467% when pulling 6ad0a0b on on-demand-les-request into 839ee9a on master.

@rphmeier rphmeier added A0-pleasereview 🤓 Pull request needs code review. and removed A1-onice 🌨 Pull request is reviewed well, but should not yet be merged. A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. labels Jan 5, 2017
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 75b5acf on on-demand-les-request into ** on master**.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 75b5acf on on-demand-les-request into ** on master**.

}

// Attempted request info and sender to put received value.
enum Pending {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the future, it might also carry around a set of peers who already failed to serve the request.

@gavofyork gavofyork added the A1-onice 🌨 Pull request is reviewed well, but should not yet be merged. label Jan 6, 2017
@gavofyork gavofyork removed the A0-pleasereview 🤓 Pull request needs code review. label Jan 6, 2017
@rphmeier rphmeier added A0-pleasereview 🤓 Pull request needs code review. and removed A1-onice 🌨 Pull request is reviewed well, but should not yet be merged. labels Jan 10, 2017
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 7dde02b on on-demand-les-request into ** on master**.

@arkpar arkpar added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Jan 12, 2017
@rphmeier rphmeier merged commit f0eab33 into master Jan 13, 2017
@arkpar arkpar deleted the on-demand-les-request branch January 18, 2017 10:20
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. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants