From 3e981e5666b36847adc6fd210c01e7219def49c7 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Sat, 18 Mar 2023 20:56:46 +0100 Subject: Manually add version+logID to STH struct Will probably make the data set manifest simpler. --- cmd_snapshot.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'cmd_snapshot.go') diff --git a/cmd_snapshot.go b/cmd_snapshot.go index 53923f2..464c684 100644 --- a/cmd_snapshot.go +++ b/cmd_snapshot.go @@ -63,14 +63,12 @@ func snapshot(opts options) error { if err != nil { return fmt.Errorf("%s: %v", *log.Description, err) } + nextSTH.Version = ct.V1 + nextSTH.LogID = id nextSTHBytes, err := json.Marshal(nextSTH) if err != nil { return fmt.Errorf("%s: %v", *log.Description, err) } - // - // It's a bit ugly that ct.SignedTreeHead contains fields that - // are not populated. Doesn't cause any prolems here, however. - // // Bootstrap log if we don't have any STH yet if _, err := os.Stat(sthFile); err != nil { -- cgit v1.2.3