-
Notifications
You must be signed in to change notification settings - Fork 448
Closed
Labels
from-reviewFeedback / alterations from specification review.Feedback / alterations from specification review.implementationTracking an external implementation of the spec.Tracking an external implementation of the spec.taoTransport, authentication, & ordering layer.Transport, authentication, & ordering layer.
Description
Surfaced from Informal Systems IBC Audit of cosmos-sdk hash cosmos/cosmos-sdk@6344d62.
-
Basic validation
ofMsgChanOpenTrycontains business logic. The same check is done also here. -
in
ChanOpenTryfunction,foundat line
is the same asfoundat line,
so the latter is redundant. Asfoundvariable is overwritten several times, renaming of this variable
is needed to simplify the logic. -
Using "" as a special value
(see line)
seems like bad practice. It would probably be better defining it as a constant. -
in function
it might be better passingconnectionIdorconectionEndas it already fetched at the calling point (for example
see line)
instead ofchannel. Then line can be removed.
cwgoes
Metadata
Metadata
Assignees
Labels
from-reviewFeedback / alterations from specification review.Feedback / alterations from specification review.implementationTracking an external implementation of the spec.Tracking an external implementation of the spec.taoTransport, authentication, & ordering layer.Transport, authentication, & ordering layer.