OSDN Git Service

Change api call port 98888 (#154)
authorGuanghua Guo <1536310027@qq.com>
Thu, 30 Nov 2017 08:26:42 +0000 (16:26 +0800)
committerGitHub <noreply@github.com>
Thu, 30 Nov 2017 08:26:42 +0000 (16:26 +0800)
* Change api port 9888

cmd/bytomcli/main.go
cmd/cobra/commands/block.go
config/toml.go

index 00176e7..1dd9975 100755 (executable)
@@ -32,7 +32,7 @@ import (
 // config vars
 var (
        home    = blockchain.HomeDirFromEnvironment()
-       coreURL = env.String("BYTOM_URL", "http://localhost:1999")
+       coreURL = env.String("BYTOM_URL", "http://0.0.0.0:9888")
 
        // build vars; initialized by the linker
        buildTag    = "?"
index f2eb960..f71c160 100644 (file)
@@ -14,7 +14,7 @@ import (
 
 var (
        home    = blockchain.HomeDirFromEnvironment()
-       coreURL = env.String("BYTOM_URL", "http://localhost:1999")
+       coreURL = env.String("BYTOM_URL", "http://localhost:9888")
 )
 
 var blockHashCmd = &cobra.Command{
index 8bf0a09..6c29dd6 100644 (file)
@@ -23,7 +23,7 @@ var defaultConfigTmpl = `# This is a TOML config file.
 # For more information, see https://github.com/toml-lang/toml
 fast_sync = true
 db_backend = "leveldb"
-api_addr = "0.0.0.0:1999"
+api_addr = "0.0.0.0:9888"
 
 [p2p]
 laddr = "tcp://0.0.0.0:46656"