-
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
change evaluate RequestId for update config #4585
Conversation
5facf86
to
5f5b50a
Compare
41726a5
to
9bb8799
Compare
orderer/consensus/smartbft/util.go
Outdated
return types.RequestInfo{} | ||
} | ||
|
||
req, err = ri.unwrapReqFromEnvelop(configEnvelope.LastUpdate) |
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.
let's log here a warning
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
9bb8799
to
557c936
Compare
557c936
to
5f8f833
Compare
if err != nil { | ||
v.Logger.Errorf("Error verifying config update: %v", err) | ||
return types.RequestInfo{}, err | ||
} | ||
|
||
return v.ReqInspector.RequestID(rawRequest), 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.
maybe check if it returns the zero value (empty request ID) then return error?
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
5f8f833
to
5059e96
Compare
Signed-off-by: Fedor Partanskiy <[email protected]>
5059e96
to
ab65998
Compare
Signed-off-by: Fedor Partanskiy <[email protected]> (cherry picked from commit fc588b5) Signed-off-by: Fedor Partanskiy <[email protected]>
In the documentation and in the examples, the channel update transaction is send to one and only one orderer. Like in raft. The smartbft features are not used.
What's happening?
When an orderer receives a channel update transaction, it takes the current channel config and applies the update to it and re-signs the transaction. It then sends it to the smartbft consensus. Total 7 different transactions appear in the consensus.
My current solution fixes the error. RequestID will be calculated differently for channel update transactions.
After this change, the channel update can be sent out as a bft.