-
Notifications
You must be signed in to change notification settings - Fork 6.5k
/
start.go
31 lines (25 loc) · 937 Bytes
/
start.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*---------------------------------------------------------------------------------------------
* Copyright (c) IBAX. All rights reserved.
* See LICENSE in the project root for license information.
*--------------------------------------------------------------------------------------------*/
package cmd
import (
"time"
"github.com/IBAX-io/go-ibax/packages/chain"
"github.com/IBAX-io/go-ibax/packages/conf"
"github.com/spf13/cobra"
)
// startCmd is starting node
var startCmd = &cobra.Command{
Use: "start",
Short: "Starting node",
PreRun: loadConfigWKey,
Run: func(cmd *cobra.Command, args []string) {
chain.Start()
},
}
func init() {
time.Local = time.UTC
startCmd.Flags().BoolVar(&conf.Config.TestRollBack, "testRollBack", false, "Starts special set of daemons")
startCmd.Flags().BoolVar(&conf.Config.FuncBench, "funcBench", false, "Disable access checking in some built-in functions for benchmarks")
}