Skip to content

Commit

Permalink
rename calcProofPath to calcProofHeights
Browse files Browse the repository at this point in the history
  • Loading branch information
dshiell committed Aug 15, 2023
1 parent 7946a24 commit c635659
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/core/multihop/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (p ChanPath) QueryMultihopProof(

// calculate proof heights along channel path
proofHeights := make([]*ProofHeights, len(p.Paths))
if err = p.calcProofPath(0, keyHeight, proofHeights); err != nil {
if err = p.calcProofHeights(0, keyHeight, proofHeights); err != nil {
return
}

Expand Down Expand Up @@ -145,9 +145,9 @@ func (p ChanPath) QueryMultihopProof(
return
}

// calcProofPath calculates the optimal proof heights to generate a multi-hop proof along the channel path
// calcProofHeights calculates the optimal proof heights to generate a multi-hop proof along the channel path
// and performs client updates as needed.
func (p ChanPath) calcProofPath(pathIdx int, consensusHeight exported.Height, proofHeights []*ProofHeights) (err error) {
func (p ChanPath) calcProofHeights(pathIdx int, consensusHeight exported.Height, proofHeights []*ProofHeights) (err error) {
var height ProofHeights
chain := p.Paths[pathIdx].EndpointB

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

// use the proofHeight as the next consensus height
if err = p.calcProofPath(pathIdx+1, height.proofHeight, proofHeights); err != nil {
if err = p.calcProofHeights(pathIdx+1, height.proofHeight, proofHeights); err != nil {
return
}

Expand Down

0 comments on commit c635659

Please sign in to comment.