Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Fetch and Load Methods #196

Merged
merged 21 commits into from
Feb 5, 2020
Merged

Added Fetch and Load Methods #196

merged 21 commits into from
Feb 5, 2020

Conversation

dutterbutter
Copy link
Contributor

Summary of changes
Changes introduced in this pull request:

  • Added fetch_tipsets method which returns FullTipset either from store or requesting via blocksync (todo)
  • Added load_fts which retrieves and constructs full tipset if keys exist in key-value store
  • Added method for returning Unsigned and Signed Messages from key-value store
  • Added TipSetKey method for returning a reference to cid keys
  • Added comments

Reference issue to close (if applicable)

Closes #195

Other information and links

The full completion of #195 is dependent on the AMT/HAMT and blocksync. See comments in syncer.rs and store.rs for more details. Once this PR is reviewed, I can make a separate task based on the above mentioned TODOS.

* Added fetch_tipsets method which returns FullTipset either from store or requesting via blocksync (todo)
* Added load_fts which retrieves and constructs full tipset if keys exist in key-value store
* Added method for returning Unsigned and Signed Messages from key-value store
* Added comments
blockchain/chain/src/store/chain_store.rs Show resolved Hide resolved
blockchain/chain/src/store/chain_store.rs Outdated Show resolved Hide resolved
blockchain/chain/src/store/chain_store.rs Outdated Show resolved Hide resolved
blockchain/chain/src/store/chain_store.rs Outdated Show resolved Hide resolved
blockchain/sync_manager/src/sync.rs Show resolved Hide resolved
blockchain/sync_manager/src/sync.rs Outdated Show resolved Hide resolved
@austinabell austinabell mentioned this pull request Jan 29, 2020
@dutterbutter
Copy link
Contributor Author

As mentioned, will wait for #197 to be merged and include AMT in this PR.

blockchain/blocks/src/header.rs Outdated Show resolved Hide resolved
ipld/amt/src/lib.rs Outdated Show resolved Hide resolved
blockchain/sync_manager/src/sync.rs Outdated Show resolved Hide resolved
blockchain/sync_manager/src/sync.rs Outdated Show resolved Hide resolved
ipld/cid/src/error.rs Outdated Show resolved Hide resolved
node/db/src/lib.rs Outdated Show resolved Hide resolved
vm/message/src/lib.rs Outdated Show resolved Hide resolved
blockchain/blocks/src/tipset.rs Outdated Show resolved Hide resolved
blockchain/chain/src/store/chain_store.rs Outdated Show resolved Hide resolved
blockchain/chain/src/store/chain_store.rs Outdated Show resolved Hide resolved
blockchain/chain/src/store/chain_store.rs Outdated Show resolved Hide resolved
blockchain/chain/src/store/chain_store.rs Outdated Show resolved Hide resolved
ipld/amt/src/lib.rs Outdated Show resolved Hide resolved
node/db/src/lib.rs Outdated Show resolved Hide resolved
vm/message/src/lib.rs Outdated Show resolved Hide resolved
@dutterbutter dutterbutter merged commit 6d4304e into master Feb 5, 2020
@dutterbutter dutterbutter deleted the dustin/fetch-tipsets branch February 5, 2020 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TASK]🗃️ Fetch and Load Tipsets for Syncer
3 participants