-
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
update libs #4970
update libs #4970
Conversation
6073d10
to
7a3a573
Compare
Signed-off-by: Fedor Partanskiy <fredprtnsk@gmail.com>
Signed-off-by: Fedor Partanskiy <fredprtnsk@gmail.com>
9b5b5b5
to
951e95a
Compare
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.
@pfi79 thanks, this is a long standing technical debt we had it the project. I am fine with the change in general, not sure it's possible to scope it to iduce less changed files.
need to carefully decided the order of how we would like to make a merge, cause it affects other repos.
regardless, I think additional couple of eyes needed to conclude on the review due to it's size (@denyeart @yacovm)
buf = addHeaderBytes(block.Header, buf) | ||
info.txOffsets, buf = addDataBytesAndConstructTxIndexInfo(block.Data, buf) | ||
buf = addMetadataBytes(block.Metadata, buf) | ||
return buf, info, nil |
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.
if function not going to return and error, I guess you can get rid of it in function signature also.
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.
fix
length, n := proto.DecodeVarint(lenBytes) | ||
if n == 0 { | ||
length, n := protowire.ConsumeVarint(lenBytes) | ||
if n <= 0 { |
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.
what is the use case for negative value of n?
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.
The DecodeVarint method checks for a negative value of n. I just repeated it.
https://github.com/golang/protobuf/blob/master/proto/buffer.go#L41
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.
ConsumeVarint can return -1
return buffer.Bytes(), nil | ||
buf = protowire.AppendVarint(buf, noBlockFilesMarker) | ||
|
||
return buf, nil |
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.
itit will always return the nil error value, IMO you'd better remove it.
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.
fix
1c5ece9
to
f1db654
Compare
Given Fabric v3.0 GA should be out very shortly, perhaps it would make sense to merge this afterwards? @denyeart when are you planning to do the GA release? |
Sorry, but changes to fabric-config and idemix have been proposed a week ago. And I was hoping they would be accepted sooner than this change. |
It's great that you have those ready, your maintenance work is appreciated. Given you have already issued PRs for the module dependencies, it would make sense to merge them first before merging this. |
Can you review and comment on them? |
I agree dependent projects should be completed first. @ale-linux is the maintainer for idemix, @ale-linux can you look at these: @pfi79 Thank you for adding some of the plan to #3650. Could you clarify in that issue the entire plan so that it is crystal clear? What is the complete set of PRs that will be needed across all repositories? Are they all open at this time? What tests will be required to mitigate risks associated with the update? Based on the idemix progress and the overall plan, we can then make a decision about the release. |
0e918cf
to
f5cee98
Compare
go.mod
Outdated
github.com/gorilla/handlers v1.5.1 | ||
github.com/gorilla/mux v1.8.0 | ||
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 | ||
github.com/hyperledger-labs/SmartBFT v0.0.0-20240616160543-3f61a410b8c1 | ||
github.com/hyperledger/fabric-chaincode-go v0.0.0-20220713164125-8f0791c989d7 | ||
github.com/hyperledger/fabric-chaincode-go/v2 v2.0.0-20240802023949-a356b32676fd |
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.
A proper v2.0.0 release is now available - https://github.com/hyperledger/fabric-chaincode-go/releases/tag/v2.0.0
8915e02
to
153c46d
Compare
I've built Fabric components from this PR and tested them in a mixed environment with Fabric v2.5.9 nodes. Everything seems to work in a mixed environment. Next step is for @ale-linux to review IBM/idemix#47. |
fcc744d
to
519fc84
Compare
@pfi79 I think you've made updates to the "delete shadow copy proto-struct" PR which diverges from the commit in this PR. I'm agreeable to having all the commits in this PR and closing the other PRs, if you can update everything here. That will make it cleaner for a single PR to test and merge. What do you think? |
f40964a
to
3ea871e
Compare
Signed-off-by: Fedor Partanskiy <fredprtnsk@gmail.com>
@pfi79 Thanks for the persistence and getting this done. I've tested latest commit again in a mixed environment with new orderer and peer nodes alongside v2.5.9 orderers and peer nodes. All looks good. The changes look good to me. I'd like to get this in and then release v3.0 shortly. I'll give the others one more chance for final review before merging. |
@denyeart looks for me, IMO we can get it in. |
@pfi79 I see that you've updated SmartBFT in hyperledger-labs/SmartBFT#597. Do you plan to update Fabric to use the updated SmartBFT? Does it matter either way? We are planning to release Fabric v3.0 shortly... |
Yes, and smartbft and gomega, figured out the error. I thought to send them right after this pr. But if you think otherwise, then I can add them to this pr. although this pr is already very big. |
Ok thanks, I'll merge this PR and then you can do the follow-on PRs. |
#3650
Libraries have been updated:
From the features:
There are floating bugs, especially in unit tests, which appear periodically