@@ -10,13 +10,24 @@ package main
1010//
1111// go run cmd/attested-get/main.go --addr=https://instance_ip:port
1212//
13- // Can also save the verified measurements and the response body to files:
13+ // Save the verified measurements and the response body to files:
1414//
15- // go run cmd/attested-get/main.go --addr=https://instance_ip:port --out-measurements=measurements.json --out-response=response.txt
15+ // go run cmd/attested-get/main.go \
16+ // --addr=https://instance_ip:port \
17+ // --out-measurements=measurements.json \
18+ // --out-response=response.txt
1619//
17- // You can also compare the resulting measurements with a list of expected measurements:
20+ // Compare the resulting measurements with a list of expected measurements:
1821//
19- // go run cmd/get-measurements/main.go --addr=https://instance_ip:port --expected-measurements=measurements.json
22+ // go run cmd/attested-get/main.go \
23+ // --addr=https://instance_ip:port \
24+ // --expected-measurements=measurements.json
25+ //
26+ // Also works with an URL for expected measurements:
27+ //
28+ // go run cmd/attested-get/main.go \
29+ // --addr=https://buildernet-01-euw.builder.flashbots.net:7936/cert \
30+ // --expected-measurements=https://measurements.builder.flashbots.net
2031//
2132
2233import (
@@ -133,6 +144,7 @@ func runClient(cCtx *cli.Context) (err error) {
133144 if expectedMeasurementsPath != "" {
134145 log .Info ("Loading expected measurements from " + expectedMeasurementsPath + " ..." )
135146 expectedMeasurements , err = multimeasurements .New (expectedMeasurementsPath )
147+ log .With ("measurements" , expectedMeasurements .Count ()).Info ("Measurements loaded" )
136148 if err != nil {
137149 return err
138150 }
0 commit comments