From cd640f3c1831d40cc1dabba1c6cb5da40d98750a Mon Sep 17 00:00:00 2001 From: qianbin Date: Thu, 28 Mar 2019 11:00:15 +0800 Subject: [PATCH 1/2] fix pprof path prefix --- api/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/api.go b/api/api.go index 32985ec95..deac14a2b 100644 --- a/api/api.go +++ b/api/api.go @@ -83,7 +83,7 @@ func New(chain *chain.Chain, stateCreator *state.Creator, txPool *txpool.TxPool, router.HandleFunc("/debug/pprof/profile", pprof.Profile) router.HandleFunc("/debug/pprof/symbol", pprof.Symbol) router.HandleFunc("/debug/pprof/trace", pprof.Trace) - router.PathPrefix("/debug/pprof").HandlerFunc(pprof.Index) + router.PathPrefix("/debug/pprof/").HandlerFunc(pprof.Index) } handler := handlers.CompressHandler(router) From f1f0d724b7bbeac64de1f23ae48a87034584cfd2 Mon Sep 17 00:00:00 2001 From: qianbin Date: Thu, 28 Mar 2019 11:24:27 +0800 Subject: [PATCH 2/2] update README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 30a407dc5..f19b39e7e 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,8 @@ bin/thor -h - `--max-peers value` maximum number of P2P network peers (P2P network disabled if set to 0) (default: 25) - `--p2p-port value` P2P network listening port (default: 11235) - `--nat value` port mapping mechanism (any|none|upnp|pmp|extip:) (default: "none") +- `--bootnode value` comma separated list of bootnode IDs +- `--pprof` turn on go-pprof - `--help, -h` show help - `--version, -v` print the version