Skip to content
Snippets Groups Projects
Commit 3e981e56 authored by Rasmus Dahlberg's avatar Rasmus Dahlberg
Browse files

Manually add version+logID to STH struct

Will probably make the data set manifest simpler.
parent 5a4d9979
Branches
Tags v0.0.1
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment