-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
Conversation
@@ -110,6 +110,16 @@ func (fl *FileLedger) Height() uint64 { | |||
return info.Height | |||
} | |||
|
|||
// GetCurrentBlockHash returns the hash of the current block's header |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
.
7990af3
to
a9b369e
Compare
a9b369e
to
d9144bc
Compare
Signed-off-by: Yoav Tock <tock@il.ibm.com> Change-Id: If590c9d4ed727f7c2805142dde36cef3c3f14fb1
d9144bc
to
c93202a
Compare
Signed-off-by: Yoav Tock <tock@il.ibm.com> Change-Id: Ic1a08b1d71ce4566b24f8a4f484f5831d94d3e07
c93202a
to
8d9d0c5
Compare
Signed-off-by: Yoav Tock <tock@il.ibm.com> Change-Id: Iaecd27c0295748f94947f5af94a7385ca455f245
Signed-off-by: Yoav Tock <tock@il.ibm.com> Change-Id: I20182b39eafeb5465fb37d1248cdb70b025dc55c
8d9d0c5
to
76fbeac
Compare
This was completed in another branch / PR |
Type of change
Description
Create a BFT synchronizer for the smartbft chain
Related issues
#4566