Skip to content

Commit c635659

Browse files
committed
rename calcProofPath to calcProofHeights
1 parent 7946a24 commit c635659

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/core/multihop/query.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func (p ChanPath) QueryMultihopProof(
108108

109109
// calculate proof heights along channel path
110110
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 {
112112
return
113113
}
114114

@@ -145,9 +145,9 @@ func (p ChanPath) QueryMultihopProof(
145145
return
146146
}
147147

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
149149
// 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) {
151151
var height ProofHeights
152152
chain := p.Paths[pathIdx].EndpointB
153153

@@ -182,7 +182,7 @@ func (p ChanPath) calcProofPath(pathIdx int, consensusHeight exported.Height, pr
182182
}
183183

184184
// 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 {
186186
return
187187
}
188188

0 commit comments

Comments
 (0)