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

[R4R]support blockhash context #167

Merged
merged 3 commits into from
Oct 23, 2019
Merged

[R4R]support blockhash context #167

merged 3 commits into from
Oct 23, 2019

Conversation

unclezoro
Copy link
Collaborator

@unclezoro unclezoro commented Sep 18, 2019

resolve bnb-chain/node#668

Just add blockHash to deliever context

  • Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
  • Wrote tests
  • Updated relevant documentation (docs/)
  • Added entries in PENDING.md with issue #
  • rereviewed Files changed in the github PR explorer

For Admin Use:

  • Added appropriate labels to PR (ex. wip, ready-for-review, docs)
  • Reviewers Assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

@abelliumnt
Copy link
Contributor

Why directly to master branch?

@unclezoro unclezoro changed the base branch from master to develop October 23, 2019 09:25
} else {
// In the first block, app.DeliverState.Ctx will already be initialized
// by InitChain. Context is now updated with Header information.
app.DeliverState.Ctx = app.DeliverState.Ctx.WithBlockHeader(req.Header).WithBlockHeight(req.Header.Height)
app.DeliverState.Ctx = app.DeliverState.Ctx.WithBlockHeader(req.Header).WithBlockHeight(req.Header.Height).WithBlockHash(req.Hash)
Copy link
Contributor

Choose a reason for hiding this comment

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

put it before BlockHeader as BlockerHeader and BlockHeight are queried much more frequent

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

sure

@unclezoro unclezoro merged commit 82f7002 into develop Oct 23, 2019
@forcodedancing forcodedancing deleted the blockhash branch May 18, 2022 06:36
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.

4 participants