updated MAIN.GO

This commit is contained in:
AnilChinchawale 2018-05-24 15:32:23 +05:30
parent deb0903922
commit 875820f769

View file

@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>. // along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
// geth is the official command-line client for Ethereum. // XDC is the official command-line client for Ethereum.
package main package main
import ( import (
@ -40,7 +40,7 @@ import (
) )
const ( const (
clientIdentifier = "geth" // Client identifier to advertise over the network clientIdentifier = "XDC" // Client identifier to advertise over the network
) )
var ( var (
@ -145,8 +145,8 @@ var (
) )
func init() { func init() {
// Initialize the CLI app and start Geth // Initialize the CLI app and start XDC
app.Action = geth app.Action = XDC
app.HideVersion = true // we have a command to print the version app.HideVersion = true // we have a command to print the version
app.Copyright = "Copyright 2013-2017 The go-ethereum Authors" app.Copyright = "Copyright 2013-2017 The go-ethereum Authors"
app.Commands = []cli.Command{ app.Commands = []cli.Command{
@ -211,10 +211,10 @@ func main() {
} }
} }
// geth is the main entry point into the system if no special subcommand is ran. // XDC is the main entry point into the system if no special subcommand is ran.
// It creates a default node based on the command line arguments and runs it in // It creates a default node based on the command line arguments and runs it in
// blocking mode, waiting for it to be shut down. // blocking mode, waiting for it to be shut down.
func geth(ctx *cli.Context) error { func XDC(ctx *cli.Context) error {
node := makeFullNode(ctx) node := makeFullNode(ctx)
startNode(ctx, node) startNode(ctx, node)
node.Wait() node.Wait()