Skip to content

Commit 17427f6

Browse files
Add client core version
1 parent 6d9a647 commit 17427f6

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

util/welcome.go

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package util
33
import (
44
"fmt"
55
"minaxnt/miner"
6+
"minaxnt/types"
67
)
78

89
func Welcome(client *miner.Client) {
@@ -19,13 +20,14 @@ func Welcome(client *miner.Client) {
1920
`
2021
fmt.Print(str)
2122
fmt.Println()
22-
fmt.Println("=> miner name:", client.ClientName)
23-
fmt.Println("=> miner id:", client.MinerID)
24-
fmt.Println("=> connected to node:", client.NodeURL)
25-
fmt.Println("=> miner address:", client.Address)
26-
fmt.Println("=> miner process:", client.Process)
27-
fmt.Println("=> cpu model:", client.CPUModel)
28-
fmt.Println("=> cpu cores:", client.CPUCores)
29-
fmt.Println("=> cpu caches:", client.CPUCaches)
30-
fmt.Println("=> cpu features:", client.CPUFeatures)
23+
fmt.Println("=> miner name:", client.ClientName)
24+
fmt.Println("=> miner id:", client.MinerID)
25+
fmt.Println("=> client core version:", types.CoreVersion)
26+
fmt.Println("=> connected to node:", client.NodeURL)
27+
fmt.Println("=> miner address:", client.Address)
28+
fmt.Println("=> miner process:", client.Process)
29+
fmt.Println("=> cpu model:", client.CPUModel)
30+
fmt.Println("=> cpu cores:", client.CPUCores)
31+
fmt.Println("=> cpu caches:", client.CPUCaches)
32+
fmt.Println("=> cpu features:", client.CPUFeatures)
3133
}

0 commit comments

Comments
 (0)