@@ -10,13 +10,24 @@ package main
10
10
//
11
11
// go run cmd/attested-get/main.go --addr=https://instance_ip:port
12
12
//
13
- // Can also save the verified measurements and the response body to files:
13
+ // Save the verified measurements and the response body to files:
14
14
//
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
16
19
//
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:
18
21
//
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
20
31
//
21
32
22
33
import (
@@ -133,6 +144,7 @@ func runClient(cCtx *cli.Context) (err error) {
133
144
if expectedMeasurementsPath != "" {
134
145
log .Info ("Loading expected measurements from " + expectedMeasurementsPath + " ..." )
135
146
expectedMeasurements , err = multimeasurements .New (expectedMeasurementsPath )
147
+ log .With ("measurements" , expectedMeasurements .Count ()).Info ("Measurements loaded" )
136
148
if err != nil {
137
149
return err
138
150
}
0 commit comments