aboutsummaryrefslogtreecommitdiff
path: root/pkg/instance/experimental.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@mullvad.net>2022-01-25 01:06:54 +0100
committerRasmus Dahlberg <rasmus@mullvad.net>2022-01-26 01:17:24 +0100
commitdf8455a97090cb06e26a881162b86887c4dfcca5 (patch)
tree3e1b9a66736a693f2da9f5cdbb581620e77d7687 /pkg/instance/experimental.go
parenta8df88efdb0adf014e524c813193228d06e9ac6a (diff)
instance: Use the new tree-head endpoints
Diffstat (limited to 'pkg/instance/experimental.go')
-rw-r--r--pkg/instance/experimental.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/instance/experimental.go b/pkg/instance/experimental.go
index ab81ada..5dab870 100644
--- a/pkg/instance/experimental.go
+++ b/pkg/instance/experimental.go
@@ -22,7 +22,7 @@ const algEd25519 byte = 1
// Sigsum API. Documentation can be found in the transparency-dev repo.
func getCheckpoint(ctx context.Context, i *Instance, w http.ResponseWriter, r *http.Request) (int, error) {
glog.V(3).Info("handling get-checkpoint request")
- sth, err := i.Stateman.ToSign(ctx)
+ sth, err := i.Stateman.ToCosignTreeHead(ctx)
if err != nil {
return http.StatusInternalServerError, err
}