@@ -108,7 +108,7 @@ func (p ChanPath) QueryMultihopProof(
108
108
109
109
// calculate proof heights along channel path
110
110
proofHeights := make ([]* ProofHeights , len (p .Paths ))
111
- if err = p .calcProofPath (0 , keyHeight , proofHeights ); err != nil {
111
+ if err = p .calcProofHeights (0 , keyHeight , proofHeights ); err != nil {
112
112
return
113
113
}
114
114
@@ -145,9 +145,9 @@ func (p ChanPath) QueryMultihopProof(
145
145
return
146
146
}
147
147
148
- // calcProofPath calculates the optimal proof heights to generate a multi-hop proof along the channel path
148
+ // calcProofHeights calculates the optimal proof heights to generate a multi-hop proof along the channel path
149
149
// and performs client updates as needed.
150
- func (p ChanPath ) calcProofPath (pathIdx int , consensusHeight exported.Height , proofHeights []* ProofHeights ) (err error ) {
150
+ func (p ChanPath ) calcProofHeights (pathIdx int , consensusHeight exported.Height , proofHeights []* ProofHeights ) (err error ) {
151
151
var height ProofHeights
152
152
chain := p .Paths [pathIdx ].EndpointB
153
153
@@ -182,7 +182,7 @@ func (p ChanPath) calcProofPath(pathIdx int, consensusHeight exported.Height, pr
182
182
}
183
183
184
184
// use the proofHeight as the next consensus height
185
- if err = p .calcProofPath (pathIdx + 1 , height .proofHeight , proofHeights ); err != nil {
185
+ if err = p .calcProofHeights (pathIdx + 1 , height .proofHeight , proofHeights ); err != nil {
186
186
return
187
187
}
188
188
0 commit comments