diff options
author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2021-03-16 18:44:14 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2021-03-16 18:44:14 +0100 |
commit | fa4ad5f6e787fbc69484c5249c5932f70309f9e4 (patch) | |
tree | 747d21c8c2d76a388dbc3fb6cecb4133f5eb721c /sth.go | |
parent | ff5c7d7a5ed338d746c17e4ae19fe752251592e9 (diff) |
return cosigned sth regardless of cosignature count
Diffstat (limited to 'sth.go')
-rw-r--r-- | sth.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -102,7 +102,7 @@ func (s *ActiveSthSource) Stable(_ context.Context) (*types.StItem, error) { func (s *ActiveSthSource) Cosigned(_ context.Context) (*types.StItem, error) { s.mutex.RLock() defer s.mutex.RUnlock() - if s.currCosth == nil || len(s.currCosth.CosignedTreeHeadV1.Cosignatures) == 0 { + if s.currCosth == nil { return nil, fmt.Errorf("no cosigned sth available") } return s.currCosth, nil |