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

pass the entire block data when making a block #754

Merged
merged 2 commits into from
May 20, 2022

Conversation

evan-forbes
Copy link
Member

@evan-forbes evan-forbes commented May 18, 2022

Description

this PR passes the entire block data instead of the txs, evidence, and messages as distinct objects. This then passes along crucial information such as the square size and the data hash.

blocking celestiaorg/celestia-app#419

Closes #753

@evan-forbes evan-forbes added the T:Bug Type: Bug (confirmed) label May 18, 2022
@evan-forbes evan-forbes requested a review from adlerjohn May 18, 2022 20:20
@evan-forbes evan-forbes self-assigned this May 18, 2022
state.Validators.GetProposer().Address,
)
return block
}

func MakeData(txs []types.Tx, evd []types.Evidence, msgs []types.Message) types.Data {
Copy link
Member

Choose a reason for hiding this comment

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

Aren't this duplicate of types.test_util.go ? Or you can't access that one in here ?

Copy link
Member Author

@evan-forbes evan-forbes May 20, 2022

Choose a reason for hiding this comment

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

I just didn't want to export it from the types package, as it is only a test util function. You're correct tho, keeping only one copy in types testutil would eliminate the need for one here, and it is an option.

@evan-forbes evan-forbes merged commit 5207c7d into v0.35.x-celestia May 20, 2022
@evan-forbes evan-forbes deleted the evan/pass-data-when-making-block branch May 20, 2022 12:57
williambanfield pushed a commit to interchainio/celestia-core that referenced this pull request Jul 14, 2022
* pass the entire block data when making a block

* linter
evan-forbes added a commit that referenced this pull request Jul 27, 2022
* pass the entire block data when making a block

* linter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T:Bug Type: Bug (confirmed)
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Pass entire block data when creating a block
3 participants