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

IF: Unification: add latest commit QC known to proposer to block extension (final part) #2090

Merged
merged 4 commits into from
Jan 17, 2024

Conversation

linh2931
Copy link
Member

Continuation of #2011. Add QC to block extension if needed.

Resolved #1586

@linh2931 linh2931 requested review from greg7mdp and heifner January 16, 2024 17:58
@linh2931 linh2931 linked an issue Jan 16, 2024 that may be closed by this pull request
auto bsp = std::make_shared<block_state>(ab.bhs, std::move(ab.trx_metas),
std::move(ab.trx_receipts));
std::move(ab.trx_receipts), qc);
Copy link
Member

Choose a reason for hiding this comment

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

std::move(qc)

Copy link
Member

Choose a reason for hiding this comment

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

Actually, I see no reason to copy it at all. Pass the ab.qc to block_state constructor as const std::optional<quorum_certificate>& and do the is_needed check in block_state constructor and pack *qc there.

Copy link
Member Author

Choose a reason for hiding this comment

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

Great!

@linh2931 linh2931 requested a review from heifner January 16, 2024 19:43
@linh2931 linh2931 requested a review from heifner January 16, 2024 22:45
@linh2931 linh2931 merged commit 1c1a560 into hotstuff_integration Jan 17, 2024
26 checks passed
@linh2931 linh2931 deleted the finish_add_block_ext branch January 17, 2024 01:35
@ericpassmore
Copy link
Contributor

Note:start
group: IF
category: INTERNALS
summary: Continuing PR #2011 add quorum certificate to block header extension.
Note:end

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.

IF: Add block extension to include latest commit QC known to proposer
4 participants