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

BFT synchronizer in orderer #4637

Closed
wants to merge 5 commits into from

Conversation

tock-ibm
Copy link
Contributor

Type of change

  • New feature
  • Improvement (improvement to code, performance, etc)

Description

Create a BFT synchronizer for the smartbft chain

Related issues

#4566

@tock-ibm tock-ibm requested a review from a team as a code owner January 28, 2024 16:55
@tock-ibm tock-ibm marked this pull request as draft January 28, 2024 16:55
@@ -110,6 +110,16 @@ func (fl *FileLedger) Height() uint64 {
return info.Height
}

// GetCurrentBlockHash returns the hash of the current block's header
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need to expand the API of the ledger? You can just retrieve the current block, now it's cached.

Copy link
Contributor Author

@tock-ibm tock-ibm Jan 29, 2024

Choose a reason for hiding this comment

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

In the orderer we can, but in the peer we sometime can't, because of a snapshot. Hence, the BFTDeliverer expects this API, as it is common to the peer as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you explain where in the production code this is used? I can't find it in the PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

After a second look, you are correct, this is not needed in the orderer.
I removed the respective changes to the fileledger.

Signed-off-by: Yoav Tock <tock@il.ibm.com>
Change-Id: If590c9d4ed727f7c2805142dde36cef3c3f14fb1
Signed-off-by: Yoav Tock <tock@il.ibm.com>
Change-Id: I1001551cf2f5152b97431ceb0183b56769dd9b8c
Signed-off-by: Yoav Tock <tock@il.ibm.com>
Change-Id: Ic1a08b1d71ce4566b24f8a4f484f5831d94d3e07
Signed-off-by: Yoav Tock <tock@il.ibm.com>
Change-Id: Iaecd27c0295748f94947f5af94a7385ca455f245
Signed-off-by: Yoav Tock <tock@il.ibm.com>
Change-Id: I20182b39eafeb5465fb37d1248cdb70b025dc55c
@tock-ibm
Copy link
Contributor Author

tock-ibm commented Mar 6, 2024

This was completed in another branch / PR

@tock-ibm tock-ibm closed this Mar 6, 2024
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.

2 participants