aboutsummaryrefslogtreecommitdiffstats
path: root/p2p
diff options
context:
space:
mode:
authorSonic <sonic@cobinhood.com>2018-10-15 11:31:40 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:49 +0800
commitaa5b35ed44d5ec38599aa9d7bb9232153bf8d81c (patch)
tree2b94a45f1690d2a3cedebadbfba5ff079bb8bea9 /p2p
parentee4b3e32c5040251b861a23cb8d8ddc41b232ce4 (diff)
downloaddexon-aa5b35ed44d5ec38599aa9d7bb9232153bf8d81c.tar.gz
dexon-aa5b35ed44d5ec38599aa9d7bb9232153bf8d81c.tar.zst
dexon-aa5b35ed44d5ec38599aa9d7bb9232153bf8d81c.zip
dex: add self node meta after Start
Diffstat (limited to 'p2p')
-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() {