aboutsummaryrefslogtreecommitdiffstats
path: root/p2p
diff options
context:
space:
mode:
authorSonic <sonic@cobinhood.com>2018-10-15 11:31:40 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:23:39 +0800
commit7d27d334ed128bf528c8a7fc16674d0a29481087 (patch)
treec32e491a0b8b722788ef801e873dabf0256f9058 /p2p
parentf4d15de52885a472ffb4ae5982662ec3f41ebebc (diff)
downloadgo-tangerine-7d27d334ed128bf528c8a7fc16674d0a29481087.tar
go-tangerine-7d27d334ed128bf528c8a7fc16674d0a29481087.tar.gz
go-tangerine-7d27d334ed128bf528c8a7fc16674d0a29481087.tar.bz2
go-tangerine-7d27d334ed128bf528c8a7fc16674d0a29481087.tar.lz
go-tangerine-7d27d334ed128bf528c8a7fc16674d0a29481087.tar.xz
go-tangerine-7d27d334ed128bf528c8a7fc16674d0a29481087.tar.zst
go-tangerine-7d27d334ed128bf528c8a7fc16674d0a29481087.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() {