Add a comment

This commit is contained in:
Andrew Ayer 2023-10-06 17:54:08 -04:00
parent 197414cfef
commit e3d8e99143
1 changed files with 1 additions and 0 deletions

View File

@ -269,6 +269,7 @@ func reconstructTree(ctx context.Context, logClient *client.LogClient, sth *ct.S
var tree *merkletree.CollapsedTree
if sth.TreeSize > 1 {
// XXX: if leafHash is in the tree in more than one place, this might not return the proof that we need ... get-entry-and-proof avoids this problem but not all logs support it
auditPath, _, err := logClient.GetAuditProof(ctx, leafHash[:], sth.TreeSize)
if err != nil {
return nil, err