OSDN Git Service

fix: fix api port (#108)
authorHAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Sat, 1 Jun 2019 08:44:39 +0000 (16:44 +0800)
committerPaladz <yzhu101@uottawa.ca>
Sat, 1 Jun 2019 08:44:39 +0000 (16:44 +0800)
Dockerfile
README.md
config/toml.go
test/integration/bash_rpc/create-account.sh
test/integration/bash_rpc/create-key.sh
test/integration/bash_rpc/net-info.sh
test/integration/run_test.go
util/util.go

index 79d1528..9873f2b 100644 (file)
@@ -13,4 +13,4 @@ RUN apk add --no-cache ca-certificates
 COPY --from=builder /go/src/github.com/vapor/cmd/bytomd/bytomd /usr/local/bin/
 COPY --from=builder /go/src/github.com/vapor/cmd/bytomcli/bytomcli /usr/local/bin/
 
-EXPOSE 1999 46656 46657 9888
+EXPOSE 1999 46656 46657 9889
index 98107b3..723b843 100644 (file)
--- a/README.md
+++ b/README.md
@@ -138,7 +138,7 @@ For more details about using `bytomcli` command please refer to [API Reference](
 Access the dashboard:
 
 ```
-$ open http://localhost:9888/
+$ open http://localhost:9889/
 ```
 
 ### In Docker
index 2c8e47a..8102708 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:9888"
+api_addr = "0.0.0.0:9889"
 moniker = ""
 `
 
index 7159503..79310f8 100755 (executable)
@@ -1 +1 @@
-curl -d '[{"root_xpubs":["2d6c07cb1ff7800b0793e300cd62b6ec5c0943d308799427615be451ef09c0304bee5dd492c6b13aaa854d303dc4f1dcb229f9578786e19c52d860803efa3b9a"],"Quorum":1,"Alias":"aa","Tags":{"test_tag":"v0"},"client_token":"test_token"}]' -X POST http://localhost:9888/create-account
+curl -d '[{"root_xpubs":["2d6c07cb1ff7800b0793e300cd62b6ec5c0943d308799427615be451ef09c0304bee5dd492c6b13aaa854d303dc4f1dcb229f9578786e19c52d860803efa3b9a"],"Quorum":1,"Alias":"aa","Tags":{"test_tag":"v0"},"client_token":"test_token"}]' -X POST http://localhost:9889/create-account
index 0d4a32b..47a1803 100755 (executable)
@@ -1 +1 @@
-curl -d '{"Alias": "alice", "Password": "123456"}' -X POST http://localhost:9888/create-key
+curl -d '{"Alias": "alice", "Password": "123456"}' -X POST http://localhost:9889/create-key
index 2c5ad43..74c473c 100755 (executable)
@@ -1 +1 @@
-curl -X POST http://localhost:9888/net-info -d '{}' 
+curl -X POST http://localhost:9889/net-info -d '{}' 
index 880cf6b..f186ca2 100644 (file)
@@ -13,7 +13,7 @@ func mockConfig() *cfg.Config {
        var config = cfg.DefaultConfig()
        config.Wallet.Disable = false
        config.Mining = true
-       config.ApiAddress = "127.0.0.1:9888"
+       config.ApiAddress = "127.0.0.1:9889"
        return config
 }
 
index f26da96..f7e06fa 100644 (file)
@@ -24,7 +24,7 @@ const (
 )
 
 var (
-       coreURL = env.String("BYTOM_URL", "http://127.0.0.1:9888")
+       coreURL = env.String("BYTOM_URL", "http://127.0.0.1:9889")
 )
 
 // Wraper rpc's client