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
// 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
import (
@ -40,7 +40,7 @@ import (
)
const (
clientIdentifier = "geth" // Client identifier to advertise over the network
clientIdentifier = "XDC" // Client identifier to advertise over the network
)
var (
@ -145,8 +145,8 @@ var (
)
func init() {
// Initialize the CLI app and start Geth
app.Action = geth
// Initialize the CLI app and start XDC
app.Action = XDC
app.HideVersion = true // we have a command to print the version
app.Copyright = "Copyright 2013-2017 The go-ethereum Authors"
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
// blocking mode, waiting for it to be shut down.
func geth(ctx *cli.Context) error {
func XDC(ctx *cli.Context) error {
node := makeFullNode(ctx)
startNode(ctx, node)
node.Wait()