Skip to content

Commit 81cc92f

Browse files
committed
Increase version
1 parent 22ff1a9 commit 81cc92f

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

cmd/mpcium/main.go

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,20 @@ import (
3131
)
3232

3333
const (
34-
Version = "0.3.2"
34+
Version = "0.3.3"
3535
DefaultBackupPeriodSeconds = 300 // (5 minutes)
3636
)
3737

38+
func printBanner() {
39+
banner := fmt.Sprintf(`
40+
╔══════════════════════════════════════════════════════════════╗
41+
║ MPCIUM v%s ║
42+
║ Multi-Party Computation Threshold Signatures Node ║
43+
╚══════════════════════════════════════════════════════════════╝
44+
`, Version)
45+
fmt.Print(banner)
46+
}
47+
3848
func main() {
3949
app := &cli.Command{
4050
Name: "mpcium",
@@ -118,6 +128,9 @@ func runNode(ctx context.Context, c *cli.Command) error {
118128
environment := appConfig.Environment
119129
logger.Init(environment, debug)
120130

131+
// Print ASCII banner
132+
printBanner()
133+
121134
// Handle password file if provided
122135
if passwordFile != "" {
123136
if err := loadPasswordFromFile(passwordFile); err != nil {
@@ -186,7 +199,7 @@ func runNode(ctx context.Context, c *cli.Command) error {
186199
reshareResultQueue := mqManager.NewMessageQueue("mpc_reshare_result")
187200
defer reshareResultQueue.Close()
188201

189-
logger.Info("Node is running", "ID", nodeID, "name", nodeName)
202+
logger.Info("Starting mpcium node", "version", Version, "ID", nodeID, "name", nodeName)
190203

191204
peerNodeIDs := GetPeerIDs(peers)
192205
peerRegistry := mpc.NewRegistry(nodeID, peerNodeIDs, consulClient.KV(), directMessaging, pubsub, identityStore)

0 commit comments

Comments
 (0)