aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/server.go
diff options
context:
space:
mode:
authorSonic <sonic@cobinhood.com>2018-10-15 11:31:40 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit4a1fdfc4ad4c52764d94f1c27a9cf18e36d04385 (patch)
treecd4cf95a18c97ecf42f74bc01e8dd7d55faac7f0 /p2p/server.go
parent47f5134d1d45538b95dfc45913a83bab594d3ca5 (diff)
downloaddexon-4a1fdfc4ad4c52764d94f1c27a9cf18e36d04385.tar.gz
dexon-4a1fdfc4ad4c52764d94f1c27a9cf18e36d04385.tar.zst
dexon-4a1fdfc4ad4c52764d94f1c27a9cf18e36d04385.zip
dex: add self node meta after Start
Diffstat (limited to 'p2p/server.go')
-rw-r--r--p2p/server.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/p2p/server.go b/p2p/server.go
index a58673342..8cd2863b3 100644
--- a/p2p/server.go
+++ b/p2p/server.go
@@ -441,6 +441,10 @@ func (srv *Server) tcpAddr(listener net.Listener) net.TCPAddr {
return addr
}
+func (srv *Server) GetPrivateKey() *ecdsa.PrivateKey {
+ return srv.PrivateKey
+}
+
// Stop terminates the server and all active peer connections.
// It blocks until all active connections have been closed.
func (srv *Server) Stop() {