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

BlockHeader Update #385

Merged
merged 11 commits into from
Apr 29, 2020
Merged

BlockHeader Update #385

merged 11 commits into from
Apr 29, 2020

Conversation

ec2
Copy link
Member

@ec2 ec2 commented Apr 29, 2020

Summary of changes
Changes introduced in this pull request:

  • Updates BlockHeader definition to match Lotus interopnet branch.

Reference issue to close (if applicable)

Closes

Other information and links

@ec2
Copy link
Member Author

ec2 commented Apr 29, 2020

Not entirely sure where to put PostProof, so its in header.rs for now

blockchain/beacon/src/beacon_entries.rs Outdated Show resolved Hide resolved
blockchain/beacon/src/beacon_entries.rs Outdated Show resolved Hide resolved
pub struct BeaconEntry {
round: u64,
data: Vec<u8>,
prev_round: u64,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why have this as a variable? Not needed when prev_round can just give you this?

Copy link
Member Author

Choose a reason for hiding this comment

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

It will be used later in an upcoming PR.

Copy link
Contributor

Choose a reason for hiding this comment

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

but can always just call the function for this instead of having it as a field?

blockchain/blocks/src/header.rs Outdated Show resolved Hide resolved
blockchain/blocks/src/header.rs Outdated Show resolved Hide resolved
blockchain/blocks/src/header.rs Outdated Show resolved Hide resolved
@ec2 ec2 requested a review from austinabell April 29, 2020 17:33
@dutterbutter
Copy link
Contributor

Just for reference: filecoin-project/specs#918

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.

There is still the small changes for beacon_entries.rs, but is functionally the same so I'm fine with this

@ec2 ec2 merged commit aa899c0 into master Apr 29, 2020
@ec2 ec2 deleted the ec2/drand/blockheader branch April 29, 2020 18: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.

None yet

3 participants