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

Chunks #1013

Draft
wants to merge 2 commits into
base: master
from

Conversation

Projects
None yet
2 participants
@SkidanovAlex
Copy link
Member

commented Jun 21, 2019

No description provided.

let genesis_state_roots =
genesis_states.iter().map(|(_, state_root)| state_root).cloned().collect::<Vec<_>>();
let genesis =
Block::genesis(genesis_state_roots, genesis_time, runtime_adapter.num_shards());

This comment has been minimized.

Copy link
@ilblackdragon

ilblackdragon Jun 21, 2019

Member

should we parameterize num_shards by block index?

SkidanovAlex added some commits Jun 28, 2019

Fixing several receipts-related issues
- Separating outgoing and incoming receipts, fixing the logic to collect outgoing receipts, properly saving incoming receipts if a chunk was skpiped.
- Previously if block was first orphaned, and then was missing chunks, chunks were not requested. Since orphans are processed in `chain`, but requests can only be done from `client`, this required some refactoring.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.