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

Sync & Store methods updated #193

Merged
merged 10 commits into from
Jan 28, 2020
Merged

Sync & Store methods updated #193

merged 10 commits into from
Jan 28, 2020

Conversation

dutterbutter
Copy link
Contributor

@dutterbutter dutterbutter commented Jan 24, 2020

Summary of changes
Changes introduced in this pull request:

  • Moved raw_block to its own crate and implemented it for Messages for storage
  • Removed multihash from trait and updated CID return
  • Added logic for validate_msg_date
  • Added put_message for storing message data in raw block format
  • Added add_tipset_tracker for updating TipIndex structure
  • Updated error messages to remove redundant err
  • Added chain_store constructor

Reference issue to close (if applicable)

Other information and links

The compute_msg_data is temporary until the AMT is finished. See Lotus reference

* Added logic for validating msg data
* Added message storage
* Made raw block its own crate and impl to messages
* Updated raw block trait to improve cid return and remove multihash
* Updated error returns
* Added comments
* Updated error names
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
blockchain/raw_block/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
blockchain/sync_manager/src/sync.rs Outdated Show resolved Hide resolved
vm/message/src/unsigned_message.rs Outdated Show resolved Hide resolved
blockchain/blocks/Cargo.toml Outdated Show resolved Hide resolved
blockchain/chain/src/store/chain_store.rs Outdated Show resolved Hide resolved
blockchain/chain/src/store/chain_store.rs Show resolved Hide resolved
blockchain/chain/src/store/chain_store.rs Outdated Show resolved Hide resolved
blockchain/sync_manager/src/sync.rs Outdated Show resolved Hide resolved
blockchain/raw_block/src/raw_block.rs Outdated Show resolved Hide resolved
* Updated RawBlock trait
* Init DB instance on chain store construction
Copy link
Contributor

@austinabell austinabell left a comment

Choose a reason for hiding this comment

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

few very small nits and it looks good to go

blockchain/blocks/src/block.rs Outdated Show resolved Hide resolved
blockchain/blocks/src/header.rs Outdated Show resolved Hide resolved
blockchain/chain/src/store/chain_store.rs Outdated Show resolved Hide resolved
@dutterbutter dutterbutter merged commit 2514c40 into master Jan 28, 2020
@dutterbutter dutterbutter deleted the dustin/sync branch January 28, 2020 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Initial Syncer Structure
3 participants