Skip to content

Commit

Permalink
feat!: build: separate miner and node version strings
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed May 23, 2024
1 parent 58a3d9e commit f76085e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/curio/guidedsetup/guidedsetup.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ func oneLastThing(d *MigrationData) {
d.say(notice, "Error getting miner power: %s", err.Error())
os.Exit(1)
}
msgMap["version"] = build.BuildVersion
msgMap["version"] = build.MinerBuildVersion
msgMap["net"] = build.BuildType
msgMap["power"] = map[uploadType]uint64{
uploadTypeIndividual: power.MinerPower.QualityAdjPower.Uint64(),
Expand Down
4 changes: 2 additions & 2 deletions cmd/curio/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func main() {
app := &cli.App{
Name: "curio",
Usage: "Filecoin decentralized storage network provider",
Version: build.UserVersion(),
Version: string(build.MinerUserVersion()),
EnableBashCompletion: true,
Before: func(c *cli.Context) error {
setupCloseHandler()
Expand Down Expand Up @@ -154,7 +154,7 @@ func main() {
}

// Generate report in CURIO_PATH and re-raise panic
build.GeneratePanicReport(c.String("panic-reports"), p, c.App.Name)
build.GenerateMinerPanicReport(c.String("panic-reports"), p, c.App.Name)
panic(r)
}
return nil
Expand Down
2 changes: 1 addition & 1 deletion cmd/curio/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ var runCmd = &cli.Command{
}

ctx, _ := tag.New(lcli.DaemonContext(cctx),
tag.Insert(metrics.Version, build.BuildVersion),
tag.Insert(metrics.Version, build.MinerBuildVersion),
tag.Insert(metrics.Commit, build.CurrentCommit),
tag.Insert(metrics.NodeType, "curio"),
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/sptool/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func main() {
app := &cli.App{
Name: "sptool",
Usage: "Manage Filecoin Miner Actor",
Version: build.UserVersion(),
Version: string(build.MinerUserVersion()),
Commands: local,
Flags: []cli.Flag{
&cli.StringFlag{
Expand Down

0 comments on commit f76085e

Please sign in to comment.