diff options
Diffstat (limited to 'p2p')
-rw-r--r-- | p2p/server.go | 4 |
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() { |