Skip to content

Commit 430e031

Browse files
committed
cleaning based on feedback
1 parent a278f75 commit 430e031

File tree

2 files changed

+127
-142
lines changed

2 files changed

+127
-142
lines changed

x/merkledb/proof.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,6 @@ func (proof *RangeProof) UnmarshalProto(pbProof *pb.RangeProof) error {
294294
return nil
295295
}
296296

297-
func (proof *RangeProof) AsChangeProof() *ChangeProof {
298-
return (*ChangeProof)(proof)
299-
}
300-
301297
// Validate received data from change/range proof requests
302298
// using the requested range.
303299
func validateChangeProof(
@@ -378,7 +374,7 @@ func (proof *RangeProof) Verify(
378374
return err
379375
}
380376

381-
return db.VerifyChangeProof(ctx, proof.AsChangeProof(), start, end, expectedRootID)
377+
return db.VerifyChangeProof(ctx, (*ChangeProof)(proof), start, end, expectedRootID)
382378
}
383379

384380
type KeyChange struct {

0 commit comments

Comments
 (0)