From e3d8e99143ed0e422b4787b9e535e3cf5e4ac08d Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Fri, 6 Oct 2023 17:54:08 -0400 Subject: [PATCH] Add a comment --- monitor/monitor.go | 1 + 1 file changed, 1 insertion(+) diff --git a/monitor/monitor.go b/monitor/monitor.go index a7aab93..3bf7414 100644 --- a/monitor/monitor.go +++ b/monitor/monitor.go @@ -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