Skip to content

Commit

Permalink
Merge pull request #70 from worldcoin/forerunner/fix-release
Browse files Browse the repository at this point in the history
Fix Release CI
  • Loading branch information
0xForerunner authored Dec 6, 2024
2 parents 07bd921 + 839a1eb commit ceab7d7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module worldcoin/gnark-mbu

go 1.22.0

toolchain go1.22.2
toolchain go1.23.3

require (
github.com/consensys/gnark v0.8.0
Expand Down
13 changes: 11 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"math/big"
"os"
"os/signal"
"time"

"worldcoin/gnark-mbu/logging"
"worldcoin/gnark-mbu/prover"
Expand Down Expand Up @@ -289,12 +290,20 @@ func main() {
return fmt.Errorf("invalid mode: %s", mode)
}

logging.Logger().Info().Msg("Reading proving system from file")
logging.Logger().Info().Msg("Loading proving system from file")
start := time.Now()
ps, err := prover.ReadSystemFromFile(keys)
if err != nil {
return err
}
logging.Logger().Info().Uint32("treeDepth", ps.TreeDepth).Uint32("batchSize", ps.BatchSize).Msg("Read proving system")
duration := time.Since(start)
logging.Logger().
Info().
Uint32("treeDepth", ps.TreeDepth).
Uint32("batchSize", ps.BatchSize).
Dur("duration", duration).
Msg("Proving system loaded")

config := server.Config{
ProverAddress: context.String("prover-address"),
MetricsAddress: context.String("metrics-address"),
Expand Down

0 comments on commit ceab7d7

Please sign in to comment.