From 778992e31e51811cf5e303c977da827c13cc61db Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Mon, 27 Apr 2015 07:25:11 -0700 Subject: [PATCH] Added pprof entry --- node/node.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/node/node.go b/node/node.go index e7802ff25..8d38d032a 100644 --- a/node/node.go +++ b/node/node.go @@ -1,6 +1,7 @@ package node import ( + "fmt" "math/rand" "net" "net/http" @@ -21,6 +22,14 @@ import ( "github.com/tendermint/tendermint/types" ) +import _ "net/http/pprof" + +func init() { + go func() { + fmt.Println(http.ListenAndServe("0.0.0.0:6060", nil)) + }() +} + type Node struct { sw *p2p.Switch evsw *events.EventSwitch @@ -209,7 +218,7 @@ func makeNodeInfo(sw *p2p.Switch) *types.NodeInfo { nodeInfo := &types.NodeInfo{ Moniker: config.App().GetString("Moniker"), Network: config.App().GetString("Network"), - Version: "0.0.1", + Version: "0.0.2", // Bumped for new SignBytes. } if !sw.IsListening() { return nodeInfo