From 325785aba470641d2028ad506c82adaedeab72f5 Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Tue, 25 Aug 2020 20:04:01 +0700 Subject: [PATCH] add net namespace (#974) --- README.md | 2 +- cmd/rpcdaemon/Readme.md | 2 +- cmd/rpctest/Readme.md | 4 ++-- docker-compose.yml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 999cdb633..761bb8c1e 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ it can run from a snapshot of a database for read-only calls. ``` > make rpcdaemon -> ./build/bin/rpcdaemon --chaindata ~/Library/TurboGeth/tg/chaindata --http.api=eth,debug +> ./build/bin/rpcdaemon --chaindata ~/Library/TurboGeth/tg/chaindata --http.api=eth,debug,net ``` **For remote DB** diff --git a/cmd/rpcdaemon/Readme.md b/cmd/rpcdaemon/Readme.md index 523fd7e40..548752401 100644 --- a/cmd/rpcdaemon/Readme.md +++ b/cmd/rpcdaemon/Readme.md @@ -8,7 +8,7 @@ it can run from a snapshot of a database for read-only calls. [Docs](./cmd/rpcda ``` > make rpcdaemon -> ./build/bin/rpcdaemon --chaindata ~/Library/TurboGeth/tg/chaindata --http.api=eth,debug +> ./build/bin/rpcdaemon --chaindata ~/Library/TurboGeth/tg/chaindata --http.api=eth,debug,net ``` **For remote DB** diff --git a/cmd/rpctest/Readme.md b/cmd/rpctest/Readme.md index 03b0fd868..ee647366c 100644 --- a/cmd/rpctest/Readme.md +++ b/cmd/rpctest/Readme.md @@ -31,8 +31,8 @@ open plot.html ### Results from my Macbook: start rpcdaemon with turbo_geth: ``` -GODEBUG=remotedb.debug=1 go run ./cmd/tg --private.api.addr localhost:9997 --rpcport 8545 --rpc --rpcapi eth,debug --nodiscover -GODEBUG=remotedb.debug=1 go run ./cmd/rpcdaemon --rpcapi eth,debug --rpcport 9545 --private.api.addr 127.0.0.1:9997 +GODEBUG=remotedb.debug=1 go run ./cmd/tg --private.api.addr localhost:9997 --rpcport 8545 --rpc --rpcapi eth,debug,net --nodiscover +GODEBUG=remotedb.debug=1 go run ./cmd/rpcdaemon --rpcapi eth,debug,net --rpcport 9545 --private.api.addr 127.0.0.1:9997 ``` On simple requests `eth_getBlockByNumber` RPC Daemon looks well: diff --git a/docker-compose.yml b/docker-compose.yml index e4a5c2729..6339678a4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -38,7 +38,7 @@ services: rpcdaemon: image: turbo-geth:latest - command: rpcdaemon --private.api.addr="turbo-geth:9090" --http.addr="0.0.0.0" --http.vhosts="*" --http.corsdomain="*" --http.api="eth,debug" + command: rpcdaemon --private.api.addr="turbo-geth:9090" --http.addr="0.0.0.0" --http.vhosts="*" --http.corsdomain="*" --http.api="eth,debug,net" ports: - 8545:8545