diff options
author | Sonic <sonic@cobinhood.com> | 2018-10-15 11:31:40 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | 5e32edda84a36b8675f58dbf87fb1c742df80d23 (patch) | |
tree | 62cf6f71605ef488c89eb5654b7a8abfc28ebde1 /p2p | |
parent | bc4075d5c095ea29f576f546fdeb245a0e00d4ea (diff) | |
download | dexon-5e32edda84a36b8675f58dbf87fb1c742df80d23.tar.gz dexon-5e32edda84a36b8675f58dbf87fb1c742df80d23.tar.zst dexon-5e32edda84a36b8675f58dbf87fb1c742df80d23.zip |
dex: add self node meta after Start
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() { |